how to temporary safe image and later save permanently

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

how to temporary safe image and later save permanently

Post by adsegzy »

Hello friends,

I have a form where people upload images and other information. Once the person finished filling the form a PREVIEW PAGE will come to show the information filled in the form. The problem is that i don't know how to temporarily save the uploaded image and use session to carry it to the PREVIEW PAGE in order to preview it with other information and also how to same it permanently if the person clicks submit or delete it if the person clicks EDIT.

I need your assistance.

Regards,
adsegzy
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: how to temporary safe image and later save permanently

Post by requinix »

You have to move the file somewhere or else you'll lose it when the script ends.

So the file starts in a temporary location, you immediately move it to a different temporary location, and then finally move it to the permanent location.
Post Reply