Re: Custom upload handler in generic view

2011-10-26 Thread Andre Terra
AFAIK, it's also doable with apache, with little modification from the code I provided. I just haven't had the chance to investigate the possibilities yet. Before I say anything else, I must admit I completely forgot to provide a very important file for the upload progress thingy: the javascript f

Re: Custom upload handler in generic view

2011-10-26 Thread hbf
Thanks for your reply and the detailed information. Your solution looks great, and I guess that using a web server-based solution (in contrast to a Django-based one) is much more efficient. What I do not understand in your setup is why, if you have HttpUploadProgressModule installed, you do need a

Re: Custom upload handler in generic view

2011-10-26 Thread Andre Terra
Are you using nginx by any chance? I use nginx and my setup is as follows: A upload.py with the custom handler and a view to yield progress result as json [1], a template with some javascript [2] to fetch the json-formatted progress result, some lines in nginx.conf [3] to tell it to keep track of

Custom upload handler in generic view

2011-10-26 Thread hbf
Dear all, In order to provide progress feedback of file uploads I needed to install an upload handler for a specific view. This is documented for "classical" views at https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#modifying-upload-handlers-on-the-fly For generic views, howeve