php - jquery-file-upload plugin: Can I set upload path at runtime? -


i've found other posts talk changing upload path jquery-file-upload plugin. however, answers involve hardcoding upload.class.php file.

i know how this, thing is, there multiple users uploading multiple files need go different folders. need able dynamically set destination path of files.

is there way can done? i've gone on jquery-file-upload documentation , there's no mention of such option. in fact, maybe it's me being tired, documentation seems lacking anyway.

if there's no way dynamically set upload path, 1 idea have workaround run script after upload complete move files hardcoded destination proper location, seems silly have that.

good idea, don't have hack upload.class.php, can override options passing in array this:

$upload_dir = '/some/other/directory/'; $options = array('upload_dir' => $upload_dir); $upload_handler = new uploadhandler($options); 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -