miki725/Django-jQuery-File-Uploader-Integration-demo — Issue #2: The GET response should be a JSON list of files, not a page template
Author: centipede
Created: 2011-10-25 08:02:35+00:00
State: open

When the fileupload widget is set up, it initially Ajax-loads what seems to be a list of files. I may have misread both yours and Tschan's code, but I think you serve the complete template page on that occasion instead.

Some info, and my apologies for giving line numbers. Not very reliable when code changes.

Loaded here:
https://github.com/miki725/Django-jQuery-File-Uploader-Integration-demo/blob/master/templates/upload.html#L62

Tschan's PHP class serves a short json list of files (not sure which ones exactly):
https://github.com/blueimp/jQuery-File-Upload/blob/master/example/upload.php#L312 i.e.
https://github.com/blueimp/jQuery-File-Upload/blob/master/example/upload.php#L234

.. But your response renders the entire html page:
https://github.com/miki725/Django-jQuery-File-Uploader-Integration-demo/blob/master/upload/views.py#L217

Regards,
Rene Jensen