jQuery-File-Upload send error -
i want upload file added input. use code this
<form> <input id="myinput" type="file"> </form> <script> $('#myinput').fileupload({ url: '/upload', change: function() { $('#myinput').fileupload('send', {}) .success(function() { console.log('success') }) .error(function() { console.log('error') }); } }); </script>
i see jquery-file-upload send request files queue , server returns 200 ok. promise rejects , have 'error' in console.
i inside plugin code , see in case returns promise rejects. should pass fileinput or files 'send' parameter resolvable promise. files duplicated.
how can resolved promise server response?
Comments
Post a Comment