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
groogruxking40
Member
Posted 2 years ago #
bump.. please someone help
There are 2 WordPress functions that should help you:
1. wp_upload_bits()
2. wp_mail()
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??
groogruxking40
Member
Posted 2 years ago #