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

apache - setting document root in antoher partition on ubuntu -

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

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -