Page 1 of 1

Late move_uploaded_file

Posted: Tue Sep 01, 2009 5:00 am
by kh411dz
Hello there anyone,

I have a question about uploaded file,
Is it possible to have an uploaded file not immediately moved to a directory,
as example, a user can upload their file and then when the user logged in the file will be move to current directory
with move_uploaded_file() function.
Is this can be done or maybe there is another way to do this, please advice.

Thanks.

Re: Late move_uploaded_file

Posted: Tue Sep 01, 2009 2:41 pm
by Darhazer
You need to move the file to temporary storage anyway, otherwise you'll lose it.
And you need to know what is the temporary path to the file for each user anyway.
Why you want to delay the moving of the file?