View Full Version : Rename an upload file...
pavmoxo
06-29-2006, 11:08 AM
For avoid files substitutions It's possible to rename a file automatically before upload?
$_FILES[<name>]['tmp_name'] contains a randomly-generated filename to which the uploaded file has been stored.
djr33
06-29-2006, 05:16 PM
Then you need to "move" the file to the name/location of your choice.
pavmoxo
06-30-2006, 09:38 AM
But $_FILES[<name>]['tmp_name'] gives an error in <name>!!!! (I have $_FILE['file']['tmp_name'])
Obviously you replace <name> with the name of your file. Standard documentation syntax for a required parameter.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.