Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handlle each uploaded file? #3

Closed
interpegasus opened this issue Aug 2, 2013 · 1 comment
Closed

How to handlle each uploaded file? #3

interpegasus opened this issue Aug 2, 2013 · 1 comment

Comments

@interpegasus
Copy link

Hi,

First of all, thank you for sharing the code.

I would like to know how to handle each individual uploaded file, before it is saved to disk?
Is there a function that I should implement or modify?

Thanks!

@Alem
Copy link
Owner

Alem commented Aug 4, 2013

Hello.
Uploaded files are received in your upload-handling view by using jfu.http.upload_receive. You are free to do whatever you please with the files once they are received.

The only thing expected by jQuery File Upload is an HTTP response with a JSON array describing the uploaded files. This step is simplified by having your upload-handling view return an instance of jfu.http.UploadResponse.

Take a look at the README.rst for more information. If this does not clear things up, I recommend you look at the demo app included in the repository for an idea of what to do (with special attention to the views.py file).

Best Regards,
Alem

@Alem Alem closed this as completed Aug 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants