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
Open

How to get server's response when using jQuery interface? #25

ProgerXP opened this issue Sep 5, 2014 · 0 comments
Labels

Comments

@ProgerXP
Copy link
Owner

@ProgerXP 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 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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant