| View previous topic :: View next topic |
| Author |
Message |
EDave
Joined: 29 Aug 2008 Posts: 2
|
Posted: Aug 29, 2008 1:09 am Post subject: dynamic target folder upload |
|
|
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. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1055 Location: Undisclosed location
|
Posted: Aug 29, 2008 7:52 am Post subject: |
|
|
1) Enable ext_folder option in config (I guess already done)
2) In upload form find
| Code: | | Upload to folder: <input type="text" name="ext_folder" size=32 class="myForm"> |
and replace with
| Code: | | <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  |
|
| Back to top |
|
 |
EDave
Joined: 29 Aug 2008 Posts: 2
|
Posted: Aug 29, 2008 3:43 pm Post subject: dynamic target folder upload |
|
|
| Thanks a lot , it works perfectly!! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|