I’m writing a portion of a php application, and when all of the forms have been filled out (2 pages of forms), the user has the option to ‘preview’ their post before submitting it to the db. Using sessions to store the text information is easy enough, and when I get to the preview page, I can simply pull the text data from session. The problem is, they can also upload an image with their post. I know that I can move_uploaded_file the image to a temp location, display it, and then delete it once the user posts/decides not to post. But I’m wondering if I can just pull the image from this /tmp location and display it just for the preview page without having to move_uploaded_file. Thanks
Share
The uploaded data is removed from the /tmp location when the script finishes. If you do not move it to another location, it will be gone forever. It works like this:
$_FILESarray