Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

The GET response should be a JSON list of files, not a page template #2

@centipede

Description

@centipede

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions