How does php Upload a compressed file? Give an instance.

Source: Internet
Author: User
How does php Upload a compressed file? Find an instance & nbsp from the internet. I don't know where I am wrong & nbsp; and I didn't specify where to upload the form part & lt; form & nbsp; enctype = "multipart/form-data" & nbsp; action = "how does php Upload a compressed file? Give an instance.
I found a file on the internet and I don't know where I got the error and didn't specify where to upload it.

Form part





Singleupload. php

If (move_uploaded_file ($ _ FILES ['upfile'] ['tmp _ name'], $ _ FILES ['upfile'] ['name']) {
Echo "file uploaded successfully!

";
} Else {
Echo "file Upload failed!

";
}
Share:
------ Solution --------------------
$ _ FILES ['upfile'] ['name']
Do you want to copy the temporary file to the original path of the uploaded file? Doomed to copy failure...
------ Solution --------------------
If (move_uploaded_file ($ _ FILES ['upfile'] ['tmp _ name'], "... /.. /files /". $ _ FILES ['upfile'] ['name']) {

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.