Programmatic file upload with jQuery-File-Upload
问题 I use jQuery-File-Upload plugin for uploading the images. now I create an image from canvas und would like to use the same mechanismus to transfer this image to the server. In jQuery-File-Upload documentation I found the way to use the fileUpload component programatically but it expects the list of files as parameters $('#fileupload').fileupload('send', {files: filesList}); in my case I have the image in form of base64. var image = canvas.toDataURL(); how can I use fileUpload component to