Support » Plugins and Hacks » Looking for upload tool for users

  • 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,

    Niels.

Viewing 1 replies (of 1 total)
  • Hi,
    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" />
    </form>

    create a directory in your wordpress root directory called
    “uploader”

    create uploader.php within the wordpress dir containing:

    <?php
    
    $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
    
    else 
    
    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,
    Kay
    http://webjunkie.de.ms

Viewing 1 replies (of 1 total)
  • The topic ‘Looking for upload tool for users’ is closed to new replies.