For avoid files substitutions It's possible to rename a file automatically before upload?
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Then you need to "move" the file to the name/location of your choice.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks