An error occurred while uploading the file.

Source: Internet
Author: User
The error Warning: move_uploaded_file (D:/EOFFICE/webroot/register. inc) [function. move-uploaded-file]: failed to open stream: Permission denied in D: \ eoffice \ webroot \ inc \ reg_submit.php on line 57

Warning: move_uploaded_file () [function. move-uploaded-file]: Unable to move 'd: \ eoffice \ tmp \ phpD077.tmp 'to 'D:/EOFFICE/webroot/register. inc 'in D: \ eoffice \ webroot \ inc \ reg_submit.php on line 57


Reply to discussion (solution)

Permission for uploading File directories.

Permission for uploading File directories.
I have added everyone, but I still cannot.

Have the permissions for the temporary directory and target directory been changed?

Have the permissions for the temporary directory and target directory been changed?
All changed or not.

Can someone help me?

Paste your code

Change the permission of the file you want to upload. In addition, change the line of code for uploading the file in php. inc to start, and change the upload path to the local path. You can search for the command to change it.

Move_uploaded_file (temporary path, storage path + text 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.