I cannot upload a file. I am trying to upload a file. the following error occurs: Warning: move_uploaded_file (upload/201006202424103745.png): failedtoopenstream: NosuchfileordirectoryinE: \ www.
When I try to upload a file, an error occurs:
Warning: move_uploaded_file (upload/201006202425103745.png): failed to open stream: No such file or directory in E: \ www \ login \ upload. php on line 28 Warning: move_uploaded_file (): Unable to move 'C: \ WINDOWS \ Temp \ php89.tmp 'to 'upload/201006202379103745.png' in E: \ www \ login \ upload. php on line 28 save picture failed
My code:
If ($ _ SERVER ['request _ method'] = 'post ')
{
If (! Is_uploaded_file ($ _ FILES ['file'] ['tmp _ name'])
{
Echo "fasgsdf ";
Exit;
}
------ Solution --------------------
The path is incorrect. There is no upload folder in the current directory, right ??
------ Solution --------------------
Because there is no folder
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.