Looking for upload tool for users (2 posts)

  1. nielsgo
    Posted 7 years ago #

    Hi all!

    I am new here, so I hope I am at the right place/category. I just began with WordPress and I like it a lot! I am looking for a widget / tool that allows my users to upload files to me. Uploading multiple files at once might be convenient as well, how these files are stored and what the maximum size should be is not determined?!?

    It would be nice if anyone can recommend me one since I can't find anyone.

    Best wishes,


    Posted 7 years ago #

    I've solved that this way (I didn't find a plugin),
    Install the ExecPHP-Plugin, and the Role Manager Plugin, create a page for Registered Users.
    Put this HTML code in there:

    <form enctype="multipart/form-data" action="uploader.php" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
    Datei auswählen: <input name="uploadedfile" type="file" />
    <input type="submit" value="Upload" />

    create a directory in your wordpress root directory called

    create uploader.php within the wordpress dir containing:

    $target_path = "uploader/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
    header("Location: http://somewhere.com/success.php"); // where you want to go after succeeded upload
    header("Location: http://somewhere.com/error.php"); // where you want to go after failed upload

    That's only an example for a very easy upload form, but I wouldn't recommend any uploads at all, because security reasons.

    Best Regards,

Topic Closed

This topic has been closed to new replies.

About this Topic