Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:58:13+00:00 2026-06-08T14:58:13+00:00

I have been attempting to move images from a form to an upload folder

  • 0

I have been attempting to move images from a form to an upload folder on my website which is hosted by godaddy. When using the move_uploaded_file() method, I get a permission denied error. I have gone through quite a few questions on this subject, but none of them have yet solved my problem. Also, I have changed my permissions to 777.

Here is the Error I have been getting:

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move ‘D:\Temp\php\php42C0.tmp’ to
‘upload/vZvD6WI4vkapbCLovWtrSIG3xPLD0E.jpeg’ in
D:\Hosting\11111\html\dir\upload_image\formsubmit.php on line 80

PHP Code:

$name = $_POST['name'];
$email = $_POST['email'];

if(isEmpty($name) || isEmpty($email)) {
    print '<b>Please go back to the previous page and fill out your name.</b>';
}
else {

$file_name = "file1";
    if ((($_FILES[$file_name]["type"] == "image/gif")
     || ($_FILES[$file_name]["type"] == "image/jpeg")
     || ($_FILES[$file_name]["type"] == "image/jpg")
     || ($_FILES[$file_name]["type"] == "image/bmp")
     || ($_FILES[$file_name]["type"] == "image/tiff")
     || ($_FILES[$file_name]["type"] == "image/png")
     || ($_FILES[$file_name]["type"] == "image/pjpeg"))
     && ( ($_FILES[$file_name]["size"] < 10000000) && $_FILES[$file_name]["size"] > 0) )
    {
        if ($_FILES[$file_name]["error"] > 0)
        {
            print "There was an error in uploading your images: " . $_FILES[$file_name]["error"] . "<br />";
        }
        else
        {
            if (file_exists("upload/" . $rand_img_name.".jpeg") )
            {
                print "Please try uploading your image again<br />";
            }
            else
            {
                move_uploaded_file($_FILES[$file_name]["tmp_name"],
                "upload" ."/". $rand_img_name.".jpeg");
                $files_are_valid[($i-1)] = true;
            }
        }
    }
    else
    {
        print 'Image must be a valid image under 10 MB (Make sure you submitted an image)<br />';
        $files_are_valid[($i-1)] = false;
    }
}

if($files_are_valid[0] == true) {
    $all_valid = true;
}
else {
    $all_valid = false;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:58:15+00:00Added an answer on June 8, 2026 at 2:58 pm

    This is a Windows server (the slashes in the paths give it away). So you need to set permissions through the GoDaddy permissions panel. You need to set read/write permissions for uploads directory. Setting 777 by FTP doesn’t cut it on Windows servers.

    http://support.godaddy.com/help/article/6481/setting-directory-permissions-with-windows-hosting-accounts/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been attempting to compile/run a sample WCF application from Juval Lowy's website
I'm attempting to build a method call from strings that have been passed into
I have been unsuccesfully attempting to upload an encrypted file to an FTP server,
I have been attempting to install MySQL 5.1.59 from source for the last couple
I am building a webapp using the jqm framework and I have been attempting
I have been attempting to use an android.preference.DialogPreference inflated from XML, but the documentation
I have been attempting to split a div into two columns using CSS, but
I have been attempting to develop a PHP API for a website. I have
I've been attempting move a directory structure from one location to another in Subversion,
I have been attempting to create a Windows Application using Iron Ruby Version 1.1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.