Ticket #2070 (closed: fixed)
Opened 3 years ago
Last modified 4 days ago
Large streaming uploads
| Reported by: | oyvind.saltvik@gmail.com | Assigned to: | jacob |
|---|---|---|---|
| Milestone: | 1.0 beta | Component: | HTTP handling |
| Version: | SVN | Keywords: | streaming, upload, large, sprintsept14, feature |
| Cc: | dsalvetti@trapeze.com, matthias@urlichs.de, oliver@obeattie.com, Maniac@SoftwareManiacs.Org, nesh@studio-quattro.com, aenor.realm@gmail.com, gary.wilson@gmail.com, serialx.net@gmail.com, wonlay@gmail.com, lurker86@gmail.com, shaun@cranedata.us, antonio.mele@gmail.com, herbert.poul@gmail.com, gabor@nekomancer.net, koebbe@wustl.edu, axiak@mit.edu, jm.bugtracking@gmail.com, moritz.angermann@gmail.com, django@versea.be, brosner@gmail.com, root.lastnode@hccnet.nl, akaihola+djtick@ambitone.com, sam@robots.org.uk, trey@ktrl.com, klaus.blindert@web.de, ville@unessa.net, reza@zeerak.ir, registrations@eugenemorozov.name, calvin@debian.org, works@ksu.edu, andrewbadr.etc@gmail.com, uptimebox@gmail.com, drfarina@acm.org, beau@hartshorne.ca, giuliani.v@gmail.com, prigun@gmail.com, zerok@zerokspot.com, johannes.beigel@brainbot.com, david@zettazebra.com, django@julienphalip.com, mocksoul@gmail.com, schlaber@gmail.com, danpoe@tschitschereengreen.com, django@hangya.net, django-2070@codef0x.org, clintecker@gmail.com | Triage Stage: | Accepted |
| Has patch: | 1 | Needs documentation: | 0 |
| Needs tests: | 0 | Patch needs improvement: | 0 |
Attachments
- 3581-streaming_uploads_and_uploadprogress_middleware_x_progress_id.diff (16.7 kB) - added by [530] on 08/26/06 21:43:49.
- Now using X_PROGRESS_ID instead of X-Progress-Id, accepts any lower/uppercase/ - / _ /prefix variant
- 3581-streaming_uploads_and_uploadprogress_middleware_x_progress_id_windowsfix.diff (16.9 kB) - added by [Cha0S] on 09/20/06 08:58:51.
- windows temporary file locking fix
- modpyton-ok-needs-fcgi-testing.3.diff (28.6 kB) - added by Øyvind Saltvik <oyvind.saltvik@gmail.com> on 02/02/07 14:50:09.
- did not work without middleware, fixed
- 4459-streaming-file-upload.diff (25.9 kB) - added by Joakim Sernbrant <serbaut@gmail.com> on 02/04/07 18:54:46.
- Simplified streaming uploads
- 4459-streaming-file-upload.2.diff (26.7 kB) - added by Joakim Sernbrant <serbaut@gmail.com> on 02/05/07 11:08:37.
- Added FILE_UPLOAD_MIN_SIZE (default 100kb) to define minimum request size for streaming to disk. Propage exeptions. I'm not too happy with the names of the settings anymore :/
- 5065-streaming_file_upload_with_shutils.diff (26.6 kB) - added by axiak@mit.edu on 04/24/07 21:58:59.
- I've updated the patch to include the shutils command and to work with [5065]. Please check to see if it works.
- 5065-streaming_file_upload_with_shutils_2.diff (27.5 kB) - added by axiak@mit.edu on 04/24/07 22:33:16.
- Works in [5065], renamed settings variable, uses global settings, defaults STREAMING_MIN_POST_SIZE to .5MB (please test though!)
- 5070-streaming-file-upload.diff (26.7 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 04/25/07 03:36:05.
- Updated to trunk, without changes
- 5078_streaming_file_upload_with_shutils_and_fallbacks.diff (28.1 kB) - added by Michael Axiak <axiak@mit.edu> on 04/25/07 11:32:17.
- Usese shutils, but falls back.
- 5078_streaming_file_upload_with_shutils_and_fallbacks_2.diff (28.2 kB) - added by Michael Axiak <axiak@mit.edu> on 04/25/07 11:35:28.
- Usese shutils, but falls back, this time it deletes the tmp file even when it falls back.
- 5078-streaming_file_upload_with_shutils_and_chunked_fallbacks.diff (28.4 kB) - added by Michael Axiak <axiak@mit.edu> on 04/25/07 13:07:36.
- This file uses python fallbacks, but using chunks to avoid loading the entire file into memory.
- 5079-streaming_file_upload_with_safe_file_move.diff (29.1 kB) - added by Michael Axiak <axiak@mit.edu> on 04/25/07 19:12:36.
- Cleaned it up a bit. Moved file_move_safe into django.utils in case it should be used in future endeavors.
- 5089-streaming_file_upload_with_safe_file_move.diff (28.0 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 04/26/07 08:18:14.
- Added missing else
- 5089-streaming_file_upload_with_safe_file_move.2.diff (29.1 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 04/26/07 09:28:10.
- Forgot to add django/utils/file.py
- 5099_patch_for_streaming_uploads.diff (30.8 kB) - added by Michael Axiak <axiak@mit.edu> on 04/26/07 13:05:16.
- Uses multiple mechanisms for determining the progress id.
- 5100_upload_request_meta.diff (33.8 kB) - added by Michael Axiak <axiak@mit.edu> on 04/26/07 18:22:31.
- This isn't important enough to get its own property in request...request.META now contains 'UPLOAD_PROGRESS_ID'
- 5100_forgot_to_revert_base.diff (32.5 kB) - added by Michael Axiak <axiak@mit.edu> on 04/26/07 18:30:25.
- I included a bit much in that last patch.
- 5100_file_upload_core.diff (34.1 kB) - added by Michael Axiak <axiak@mit.edu> on 04/26/07 20:15:08.
- Meant to be cleaner, especially in light of #4165
- 5100_file_upload_core_with_middleware_hooks.diff (37.7 kB) - added by Michael Axiak <axiak@mit.edu> on 04/27/07 00:28:52.
- Added middleware hooks
- 5100_file_upload_core_with_middleware_hooks_2.diff (37.7 kB) - added by Michael Axiak <axiak@mit.edu> on 04/27/07 00:30:21.
- Added middleware hooks...this is better.
- 5100_file_upload_core_with_middleware_hooks_3.diff (41.8 kB) - added by Michael Axiak <axiak@mit.edu> on 04/27/07 00:48:16.
- Apparently I don't know how not to lose files.
- 5100_file_upload_core_with_middleware_hooks_4.diff (38.9 kB) - added by Michael Axiak <axiak@mit.edu> on 04/27/07 00:55:13.
- Apparently I don't know how not to lose files.
- 5113_file_upload_core_with_middleware_hooks.diff (39.1 kB) - added by Michael Axiak <axiak@mit.edu> on 04/27/07 12:12:24.
- Fixes WSGI bug.
- 5116_streaming_upload_fixed_middleware_append.diff (35.4 kB) - added by Michael Axiak <axiak@mit.edu> on 04/28/07 00:56:40.
- Fixed bug where .append(0, func) was called.
- 5116_streaming_upload_fixed_middleware_append_2.diff (42.4 kB) - added by Michael Axiak <axiak@mit.edu> on 04/28/07 00:57:51.
- Fixed bug where .append(0, func) was called with the files this time.
- 5126_file_upload_wsgi_tested.diff (41.3 kB) - added by Michael Axiak <axiak@mit.edu> on 04/28/07 21:18:52.
- Tested with WSGI and made a few changes.
- 5126_file_uploads_latest_patch.diff (39.4 kB) - added by Michael Axiak <axiak@mit.edu> on 04/29/07 03:10:33.
- Added 'state':'starting' to be more like mod_uploadprogress.
- 5127_file_uploads_no_streaming_fixed.diff (39.2 kB) - added by SmileyChris on 04/29/07 21:42:39.
- There was an error uploading large files with streaming turned off
- 5313_updated_file_progress.diff (36.7 kB) - added by Michael Axiak <axiak@mit.edu> on 05/22/07 03:20:55.
- Removed some unneeded things. No file progress tracking by default.
- 5343_1_streaming_file_upload.diff (38.4 kB) - added by Michael Axiak <axiak@mit.edu> on 05/25/07 22:56:34.
- Newer, cleaner version of file upload script
- 5343_streaming_file_upload_no_assert.diff (39.3 kB) - added by Michael Axiak <axiak@mit.edu> on 05/25/07 22:58:14.
- Newer, cleaner version of file upload script (doh! no random commented assert)
- 5343_streaming_file_upload_best.diff (38.4 kB) - added by Michael Axiak <axiak@mit.edu> on 05/25/07 23:01:15.
- Sorry about that -- this one is the better one.
- 5343_cleaned_streaming_file_upload.diff (37.4 kB) - added by Michael Axiak <axiak@mit.edu> on 05/25/07 23:17:18.
- It's amazing what Trac helps you see.
- 5343_cleaned_streaming_file_upload_tweaked.diff (37.3 kB) - added by Michael Axiak <axiak@mit.edu> on 05/26/07 00:49:31.
- Made a subtle fix after testing with #4165.
- 5343_cleaned_streaming_file_upload_tweaked2.diff (37.3 kB) - added by klaus.blindert@web.de on 07/12/07 07:57:28.
- Fixed microscopic bug in an error path
- 5722.diff (26.4 kB) - added by simonbun <simonbun@versea.be> on 07/19/07 04:22:19.
- Updated patch against r5722
- 5722.2.diff (22.2 kB) - added by simonbun <simonbun@versea.be> on 07/19/07 04:30:31.
- Sorry, that last one patch also included #4165. This is the correct one.
- 5724_streaming_file_upload.diff (37.8 kB) - added by Brian Rosner <brosner@gmail.com> on 07/19/07 17:43:06.
- updated to r5724 (previous patch was missing files too)
- 5820_streaming_file_upload.diff (37.8 kB) - added by Brian Rosner <brosner@gmail.com> on 08/06/07 11:07:06.
- updated to r5820
- 6469_streaming_file_upload.diff (38.5 kB) - added by Faheem Mitha <faheem@email.unc.edu> on 10/10/07 16:56:05.
- 6525_all_tests_pass.diff (39.6 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 10/17/07 05:08:02.
- Fixed unicode in POST issues, added django.http.utils, moved str_to_unicode there
- 6603_all_tests_pass_uploadedfile_wrapper_fixed.diff (42.1 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 10/26/07 05:22:30.
- Fixed a problem with UploadedFile? wrapper and making sure content is not read in Fie/ImageField
- 6652_isValidImage_using_tmpfilename.diff (42.7 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 11/05/07 09:34:16.
- made the isValidImage validator try the tempfile before reading content
- 6654_fixed_tests_and_file_clean.diff (45.0 kB) - added by Øyvind Saltvik <oyvind@saltvik.no> on 11/06/07 09:09:37.
- diff did not apply cleanly, fixed
- streaming.6710.patch (45.5 kB) - added by Faheem Mitha <faheem@email.unc.edu> on 11/25/07 14:58:31.
- Updated streaming patch to trunk rev 6710.
- streaming.7092.patch (44.8 kB) - added by egon on 02/06/08 04:44:47.
- Made it apply cleanly to rev. 7092
- streaming.7092.patch.partial_tests_fix (48.6 kB) - added by faheem on 02/08/08 14:55:41.
- Slightly modified version of streaming.7092.patch with more tests passing.
- streaming.7106.patch (48.0 kB) - added by egon on 02/12/08 03:17:23.
- Passes al tests.
- ticket2070_rev7277.diff (48.1 kB) - added by axiak on 03/17/08 22:33:08.
- Same patch applied to @7277
- 2070_revision7339_uploadhandling.diff (38.8 kB) - added by axiak on 03/20/08 15:04:37.
- NEW Upload handling for revision 7339
- 2070_revision7339_formhandling.diff (11.4 kB) - added by axiak on 03/20/08 15:05:47.
- NEW Form handling for uploaded files for revision 7339
- 2070_revision7351_latest.diff (67.7 kB) - added by axiak on 03/22/08 22:49:15.
- Latest patch for 2070...includes everything (see comment)
- 2070_latest7354.diff (68.8 kB) - added by axiak on 03/23/08 15:48:28.
- The latest #2070 patch. Small changes...see comment.
- 2070_revision7359.diff (76.9 kB) - added by axiak on 03/24/08 14:46:38.
- New diff...some style changes and new documentation.
- 2070_revision7363.diff (93.2 kB) - added by axiak on 03/26/08 01:16:43.
- Altered documentation to be more approachable.
- 2070_revision7363.2.diff (94.0 kB) - added by axiak on 03/26/08 08:28:36.
- Slightly newer...handles exhaustion a little bit differently.
- 2070_revision7377.diff (95.3 kB) - added by axiak on 03/29/08 01:11:04.
- New 2070 patch...includes fixes to the parser in addition to the newforms fix caught by EricB as well as better docs.
- 2070_revision7396.diff (98.6 kB) - added by axiak on 03/31/08 19:50:57.
- Better patch...not sure how the newforms code in the previous patch was the way it was.
- 2070_revision7388.diff (98.6 kB) - added by axiak on 04/01/08 18:14:57.
- new patch that fixes error with instantiating the upload handlers, thanks Eric!
- 2070_revision7484.diff (99.2 kB) - added by axiak on 04/27/08 17:54:31.
- Updated diff per Jacob's requests and useful feedback.
- 2070_revision7484.2.diff (99.3 kB) - added by axiak on 04/27/08 23:01:43.
- Fixed file_size bug with memory handling.
- 2070_revision7599.diff (45.6 kB) - added by leahculver on 06/09/08 03:22:20.
- Updated patch to r7599
- 2070-r7695.patch (100.6 kB) - added by jacob on 06/18/08 15:47:42.
- Streaming uploads patch updated to [7695] and reviewed.
- 2070-r7728.patch (114.5 kB) - added by jacob on 06/26/08 14:02:55.
- "release candidate" patch
