XUpload - dynamic target folder upload

Message
Author
EDave
Posts: 2
Joined: Aug 29, 2008 1:00 am

dynamic target folder upload

#1 Postby EDave » Aug 29, 2008 1:09 am

Hello:

I have created several folders under a master folder, one folder for each user.

So every time a user attempts to upload a file, my system should put it in the master folder inside the user_named folder i have created for him.

i have been trying with the ext_folder option, but just shows me a text box labeled "Upload to folder:" instead of automatically redirecting the upload towards the ../master_folder/user_named folder.

Thanks for helping.

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Aug 29, 2008 7:52 am

1) Enable ext_folder option in config (I guess already done)

2) In upload form find

Code: Select all

Upload to folder: <input type="text" name="ext_folder" size=32 class="myForm">

and replace with

Code: Select all

<input type="hidden" name="ext_folder" value="<?php echo $username ?>">


I'm not sure in this PHP code insertion, sorry, but you got my point :)

EDave
Posts: 2
Joined: Aug 29, 2008 1:00 am

dynamic target folder upload

#3 Postby EDave » Aug 29, 2008 3:43 pm

Thanks a lot , it works perfectly!!


Return to “XUpload”



Who is online

Users browsing this forum: No registered users and 0 guests