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.
XUpload - dynamic target folder upload
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
1) Enable ext_folder option in config (I guess already done)
2) In upload form find
and replace with
I'm not sure in this PHP code insertion, sorry, but you got my point
2) In upload form find
Code: Select all
Upload to folder: <input type="text" name="ext_folder" size=32 class="myForm">
Code: Select all
<input type="hidden" name="ext_folder" value="<?php echo $username ?>">
dynamic target folder upload
Thanks a lot , it works perfectly!!