Move_uploaded_file is usually used after the page is blank, not post
Source: Internet
Author: User
After move_uploaded_file is used properly, the page is blank. non-post $ result = move_uploaded_file ($ _ FILES ['This _ file'] ['tmp _ name'], & quot ;.. /uploads/{$ _ FILES ['the _ move_uploaded_file is blank after use, not post
$ Result = move_uploaded_file ($ _ FILES ['This _ file'] ['tmp _ name'], "... /uploads/{$ _ FILES ['The _ file'] ['name']} ");
If ($ result ){...}
How can I determine the legal file of move_uploaded_file?
------ Solution --------------------
Enctype = "multipart/form-data" plus?
------ Solution --------------------
Paste your code
------ Solution --------------------
Discussion
$ Result = move_uploaded_file ($ _ FILES ['This _ file'] ['tmp _ name'], "... /uploads/{$ _ FILES ['The _ file'] ['name']} ");
If ($ result ){...}
How can I determine the legal file of move_uploaded_file?
------ Solution --------------------
If ($ _ SERVER ['request _ method'] = 'post ')
Case Sensitive
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.