I want the user to be able to upload an image using <input type=\"file\"> and on the following page be able to view the uploaded image.
However, I want the image to viewed from the php temp dir, without being store anywhere else.
I know the file is stored on $_FILES['file']['tmp_name'] but is it possible to show the image from that location or is it deleted immediately?
Do I have to move_uploaded_file from the php temp dir before I can show it on a page, and if so, how do I delete the file automatically after it has been shown?
Appearantly it's not possible to put unlink("dir/file"); right after <img src="dir/file">...
Thanks!