how to get fileList for jquery fileupload plugin?
I am trying to trigger the send action by code, from the documentation
which looks like this:
$('#fileupload').fileupload('send', {files: filesList});
But I am having trouble finding out how to populate filesList, any ideas?
this is an extract from my html input:
<input type="text" name="name"/>
<input type="file" name="image" id="image" />
This is my code try to sendit
form.fileupload('send', {
url: api_urls['wishlistitem']+'?format=json',
files: $('input[name="image"]',form).files,
});
No comments:
Post a Comment