How to change the folder where the jQuery File Upload plugin looks for the images to be displayed?
Currently the folder is the "files" but I did not find the location where it is indicating the folder being searched for.
How to change the folder where the jQuery File Upload plugin looks for the images to be displayed?
Currently the folder is the "files" but I did not find the location where it is indicating the folder being searched for.
From what I found on the net, you have 3 ways to do this:
1- Include in form
<form id="fileupload" action="/Backload/UploadHandler" method="POST" enctype="multipart/form-data">
...
<input type="hidden" name="objectContext" value="user123" />
...
</form>
2- Via Jquery
$('#fileupload').bind('fileuploadsubmit', function (e, data) {
// The example input, doesn't have to be part of the upload form:
var $context = $('#objContext');
data.formData = { example: $context.val() };
});
3- No controller
var fileUploadUrl = "/Backload/UploadHandler" + "?objectContext=user123";
Source: Source Link