Forums

Need an Upload PHP script (7 posts)

  1. groogruxking40
    Member
    Posted 2 years ago #

    Hey again

    I have the code for the customer to browse their computer for a file, then hit submit to upload it, but here is what i need

    I need the file they upload to

    (a) go to a spot on my server
    (b) get a copy of the file e-mailed to me

    I'm counting on one of your geniuses to help me out

    -S

  2. groogruxking40
    Member
    Posted 2 years ago #

    bump.. please someone help

  3. nathanrice
    Member
    Posted 2 years ago #

    There are 2 WordPress functions that should help you:

    1. wp_upload_bits()
    2. wp_mail()

  4. groogruxking40
    Member
    Posted 2 years ago #

    this is the upload code I came up with

    <form enctype="multipart/form-data" action="upload.php" method="post" style="margin:0px;">
    <input type="hidden" name="MAX_FILE_SIZE" value="500000"/><input type="hidden" name="uplfile" value="1"/>
    <input name="uploaded_file" type="file"/>
    <input type="submit" class="submit" value="Upload" />
    </form>

    now, once the user selects a file, how can i make it so that the file goes to my uploads folder on my server and then a copy of it emailed to my e-mail??

  5. groogruxking40
    Member
    Posted 2 years ago #

    bump it up

  6. jonahcoyote
    Member
    Posted 2 years ago #

  7. whooami
    Member
    Posted 2 years ago #

    wp-vault

    google it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.