:100644 100644 c70e273... 0000000... M mediagoblin/submit/lib.py
diff --git a/mediagoblin/submit/lib.py b/mediagoblin/submit/lib.py
index c70e273..2392ddc 100644
a
|
b
|
def submit_media(mg_app, user, submitted_file, filename,
|
151 | 151 | queue_file = prepare_queue_task(mg_app, entry, filename) |
152 | 152 | |
153 | 153 | with queue_file: |
154 | | queue_file.write(submitted_file.read()) |
| 154 | while True: |
| 155 | data = submitted_file.read(16384) |
| 156 | if not data: |
| 157 | break |
| 158 | queue_file.write(data) |
155 | 159 | |
156 | 160 | # Get file size and round to 2 decimal places |
157 | 161 | file_size = mg_app.queue_store.get_file_size( |