Questions about website Upload failure

Source: Internet
Author: User
Regarding the website Upload failure, when I upload my website space, echo "temporary directory is empty". Is this a problem configured by the space provider php, the Directory of this program is the up folder. If the website fails to be uploaded, the directory permission is fine. Why? & Lt ;! DOCTYPE & nbsp; html & nbsp; PUBL: Website Upload failure
When uploading my website space, echo is "the temporary directory is empty". Is this a problem with the php configuration of the space provider? the directory for storing this program is the up folder. If the website fails to be uploaded, the directory permission is fine. Why?

 

 

Untitled Document 
 

 

If (@ $ _ POST ['action1'])
{
Set_time_limit (60 );
For ($ I = 1; $ I <3; $ I ++)
{
Echo"
";
$ File = "file ";
$ File = $ file. $ I;
@ $ File_tmp = $ _ FILES ["$ file"] ["tmp_name"];
If (empty ($ file_tmp )){
Echo 'temporary directory empty ';
Exit ();

}

@ $ File_name = $ _ FILES ["$ file"] ["name"];
$ Path = "up \\";
$ Ext = end (explode (".", $ file_name ));
$ File_new_name = time (). ".". $ ext;
$ Filea = $ path. $ file_new_name;

If (copy ($ file_tmp, $ filea ))
{
Echo "successful ";

Echo"
";

Echo "";
}
Else
{
Echo "fail !! ";
Exit (1 );
}

}
}

Else
{
?>

 

}
?>
 
 

------ Solution --------------------
Echo $ _ FILES ["$ file"] ["error"];

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.