Jump to content

Recommended Posts

Hi all,

 

how do you store all the information inside _FILES[] when you do a post? How long does a file stay in the temp dir before you have to move it or it gets deleted?

I need to know this because I want one php file to have the upload GUI and another to actually store the file on the server but I do not know how to pass the file information between the two.

Thanks.

 

DAN

Link to comment
https://forums.phpfreaks.com/topic/55463-storing-_files/
Share on other sites

"The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed." -- PHP Manual on handling file uploads.  You'll need to move or rename the files in the upload script before it exits.  You can use serialize() to write out an array as a string value (and retrieve it via unserialize()) if you need to save an array between scripts.

Link to comment
https://forums.phpfreaks.com/topic/55463-storing-_files/#findComment-274105
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.