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.

0 Replies to "[PHP] How do I allow users to chose where to upload the file?"


    Please be polite and helpful and do not spam or offend others. We promise you will be treated the same way.

    Log in your free account or if you still haven't joined our Webmaster Community Reward Program, you can create your free account now.

    Posting tip:
    if you use code in your comments please put it in these tags [php], [sql], [css], [js]
    PHP code example: [php] echo date("Y-m-d"); [/php]

    Thank you,
    ~ PHPJabbers team ~