如何通过jQuery动态设置上传目标(blueimp / jQuery-File-Upload)

This is a question regarding blueimp's jQuery-File-Upload, which can be found here:

blueimp's jQuery-File-Upload

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?

Thanks very much!

The Blueimp gallery plugin has a .js file named main.js just change this line:

$('#fileupload').fileupload({
    url: 'server/php/'
});

for your previusly declared, DynamicVar:

var DynamicVar = "MyDynamic/folder";

$('#fileupload').fileupload({
    url: DynamicVar
});

Cheers!.