jQuery UI Widgets › Forums › General Discussions › Editors › FileUpload › How to see it if the files have been upload
Tagged: Angular file upload, end, event, file, File Upload, fileupload, HTTP status, HTTP status code, jquery file upload, jqxFileUpload, server response, upload, uploadEnd
This topic contains 5 replies, has 3 voices, and was last updated by Dimitar 9 years, 11 months ago.
-
Author
-
Hi, I put the demo defaultfunctionality into my workspace, and use the imageUpload.php.
Then in the ie, I open the website and upload a file for a test.
But I don’t know whether it works. How to see it if the files have been upload?demo defaultfunctionality and imageUpload.php:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxfileupload/index.htm?(arctic)#demos/jqxfileupload/defaultfunctionality.htmI need a backend but I have not found it now.
Hi zhaopei,
When a file has been uploaded, the uploadEnd event will be triggered. Its two arguments are the uploaded file’s name and the server response (if any). Here is how to bind to this event:
$('#jqxFileUpload').on('uploadEnd', function (event) { var args = event.args; var fileName = args.file; var serverResponce = args.response; // Your code here. });Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/This only provides the response body, not the status. If the server responds with a 503 there may be no body at all. How do I get access to the http/xhr status?
Hello DennisDupont,
Unfortunately, HTTP status codes cannot be received by jqxFileUpload, as already stated in the following forum topic: http://www.jqwidgets.com/community/topic/server-responce-wrapped-by-html-and-missing-status/#post-81270.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Yes, I’ve had to abandon this widget and do it manually. Any plans to expose this?
Hi DennisDupont,
We will consider implementing this feature in a future version of jQWidgets. Thank you for the valuable feedback.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.