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 get server's response when using jQuery interface? #25

Open
ProgerXP opened this Issue Sep 5, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@ProgerXP
Copy link
Owner

ProgerXP commented Sep 5, 2014

I would like to use the jQuery interface but how is it possible to get the server's response on 'filedone'? I would like the server to rename the uploaded file to avoid collisions and pass the new name back to the web page.

Simply use XHR object given to 'done' event as in $().on('filedone', function (e, file, xhr)) - e.g. its responseText field to get whatever was output by the server. Note that it won't work for iframe (if you're using it) - see the docs for iframeDone and the comment about filedone in the source code around the end of the file.

@ProgerXP ProgerXP added the question label Sep 5, 2014

@ProgerXP ProgerXP closed this Sep 5, 2014

@ProgerXP ProgerXP reopened this Sep 5, 2014

@ProgerXP ProgerXP changed the title How to get server's response when using FileDrop's jQuery interface? How to get server's response when using jQuery interface? Sep 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.