1
How to change the folder where the jQuery File Upload plugin fetches the images to display?
Currently the folder is "files" but I could not find the location where it is indicating the folder to be searched images.
1
How to change the folder where the jQuery File Upload plugin fetches the images to display?
Currently the folder is "files" but I could not find the location where it is indicating the folder to be searched images.
4
From what I found online, you have three ways to do that:
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- In the controller
var fileUploadUrl = "/Backload/UploadHandler" + "?objectContext=user123";
Source: Link Source
Browser other questions tagged javascript jquery file-upload
You are not signed in. Login or sign up in order to post.
in these forms you sent are to the place where the images will be inserted? or the place where it loads from?
– Renan Rafael Bertoldo
Because my problem is this: I use the system to upload images of property, where each property has its image folder and I need that when editing the property is already open the images that have already been inserted in it understands
– Renan Rafael Bertoldo
To the place where they are inserted. In your case you can always build the directory from the property. These using which programming language?
– CesarMiguel
The location where the images are being inserted is ok, when registering the property is already going to the folder referring to the immovable, the problem is at the time of editing I need you to search the images inside the folder of the property because by default the plugin is the folder files that is inside the plugin itself and I can’t find where you make this reference.
– Renan Rafael Bertoldo
Ahh I get it. When you upload the photos to edit it is that it retrieves the files folder... I’ll do some research, see if I can find anything :)
– CesarMiguel
Exactly, it is at the time of editing that he should search for another folder, in case you get something and can post here I would be very grateful
– Renan Rafael Bertoldo