How to set up dynamic upload assignment via jQuery (blueimp / jQuery-File-Upload)
This is a question about the blueimp jQuery-File-Upload which can be found here:
blueimp jQuery-Upload File
Does anyone know how to set the upload destination url or folder via jQuery? Using the downloaded example for PHP, could you provide an example?
Many thanks!
+3
Honey badger
source
to share
1 answer
The Blueimp gallery plugin has a .js file named main.js, just change this line:
$('#fileupload').fileupload({
url: 'server/php/'
});
for your previous declaration, DynamicVar:
var DynamicVar = "MyDynamic/folder";
$('#fileupload').fileupload({
url: DynamicVar
});
Hooray!.
-1
jCaMaX
source
to share