in my site I'm having gallery page that you can upload your pictures in steps first step you upload the picture then go to another page, my problem is i want to use this file that have been uploaded in temp folder in the second page because in the finale step i will upload it in database ,how can i do that?
Using files array in another page ?
Collapse
X
-
why don't you switch the steps? the steps:
1. user enter his info
2. user upload his photo
3. save all data to database
then you don't have to read $_FILES from previous page.Comment
-
Heya, Smartic.
An alternative would be to move the file to a secondary location on your server (you can't rely on its location in the temp directory, since it could be erased).
The only problem is that you then are going to want to have some sort of garbage collection routine (to remove "step 1" uploads that never made it to step 3).Comment
Comment