Late move_uploaded_file

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
kh411dz
Forum Newbie
Posts: 1
Joined: Tue Sep 01, 2009 4:50 am

Late move_uploaded_file

Post 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.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Late move_uploaded_file

Post 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?
Post Reply