08
Jul
[PHP] How do I allow users to chose where to upload the file?
Posted by Cody | 0 Comments
I want to allow my users to chose where to upload their files. If anyone could help me, that'd be great.
uploader.html
http://pastebin.com/LQP9jxLH
upload.php
http://pastebin.com/CtM1LW13
I need it to be like a drop-down menu, because I don't want users creating directories. I will set the options available for them though.
All help is appreciated. :)
Also, I need it to generate a script into the page once the file has uploaded.
Say, if example.jpg was uploaded to /Cody/Pictures.
It would delete <h1>No files were found..</h1>
and replace it with:
File Name: $FileName
Download: <a href="$filepath"></a>
Can anyone do that? Thanks if you can!
I would do this myself, but I am just a beginner. So, I am very clueless. :3
Security is not a problem, because this is for a family-only accessed site. So yer.