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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -