Viewing uploaded images
Moderator: General Moderators
Viewing uploaded images
Is there anyway I can view my uploaded images without having to save them to a folder.
Re: Viewing uploaded images
you can by using something like the GD Library.
Re: Viewing uploaded images
Code: Select all
header("Content-type: image/png"); // Change to appropriate MIME type
readfile($FILES["the_uploaded_image"]["tmp_name"]);Re: Viewing uploaded images
Just bear in mind you'll lose the ability to save them later. Once the script ends, the temporary files are usually deleted.