PHP HTTP POST images & files

/ Published in: PHP
Save to your folder(s)

The following are instructions to "re-post" files that have been already been POSTed to your php script. This can help if you want to have a form (with file upload) that POSTs its data to your own script where the text elements can be handled and then the script POSTs the file for processing/storage on another system.

Basically the key is that you only POST the `$_FILES['tmp_name']` with an "@" symbol prepended.

Spent a good hour trying to figure this out. Thanks to gordon who posted on 08-Sep-2004 10:08 at

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.