Page 1 of 1

how to temporary safe image and later save permanently

Posted: Wed Oct 06, 2010 9:18 pm
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

Re: how to temporary safe image and later save permanently

Posted: Wed Oct 06, 2010 11:30 pm
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.