Title: Need an Upload PHP script
Last modified: August 19, 2016

---

# Need an Upload PHP script

 *  [groogruxking40](https://wordpress.org/support/users/groogruxking40/)
 * (@groogruxking40)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/)
 * 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

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [groogruxking40](https://wordpress.org/support/users/groogruxking40/)
 * (@groogruxking40)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1111832)
 * bump.. please someone help
 *  [Nathan Rice](https://wordpress.org/support/users/nathanrice/)
 * (@nathanrice)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1111834)
 * There are 2 WordPress functions that should help you:
 * 1. [wp_upload_bits()](http://phpxref.com/xref/wordpress/wp-includes/functions.php.source.html#l1935)
   
   2. [wp_mail()](http://phpxref.com/xref/wordpress/wp-includes/pluggable.php.source.html#l222)
 *  Thread Starter [groogruxking40](https://wordpress.org/support/users/groogruxking40/)
 * (@groogruxking40)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1111845)
 * 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??
 *  Thread Starter [groogruxking40](https://wordpress.org/support/users/groogruxking40/)
 * (@groogruxking40)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1111868)
 * bump it up
 *  [jonahcoyote](https://wordpress.org/support/users/jonahcoyote/)
 * (@jonahcoyote)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1112012)
 * why not just use cforms? [http://www.deliciousdays.com/cforms-plugin](http://www.deliciousdays.com/cforms-plugin)
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1112013)
 * wp-vault
 * google it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Need an Upload PHP script’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/need-an-upload-php-script/#post-1112013)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
