Looking at the docs... https://docs.djangoproject.com/en/1.4/topics/http/file-uploads/
under "Modifying upload handlers on the fly" it states: "Sometimes particular views require different upload behavior. In these cases, you can override upload handlers on a per-request basis by modifying request.upload_handlers. By default, this list will contain the upload handlers given by FILE_UPLOAD_HANDLERS, but you can modify the list as you would any other list. For instance, suppose you've written a ProgressBarUploadHandler that provides feedback on upload progress to some sort of AJAX widget. You'd add this handler to your upload handlers like this: request.upload_handlers.insert(0, ProgressBarUploadHandler()) You'd probably want to use list.insert() in this case (instead of append()) because a progress bar handler would need to run before any other handlers. Remember, the upload handlers are processed in order. If you want to replace the upload handlers completely, you can just assign a new list: request.upload_handlers = [ProgressBarUploadHandler()]" If I try this, at the top of my view function, request.upload_handlers = [McdFileUploadHandler()] then the upload happens first, and I get an exception: "You cannot set the upload handlers after the upload has been processed." Umm, how can I put this sooner? It's the first line of my view function. Thanks, Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

