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 6715659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:38:26+00:00 2026-05-26T08:38:26+00:00

Hello I am trying to upload a file a user selects on their local

  • 0

Hello I am trying to upload a file a user selects on their local computer to my server through a form but I get the following php error:

Warning: move_uploaded_file(bqformtest/uploaded_files/test.doc)
[function.move-uploaded-file]: failed to open stream: No such file or
directory in /home/drawapl1/public_html/bqformtest/index.php on line
40

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move ‘/tmp/phphhS4QD’ to ‘bqformtest/uploaded_files/test.doc’ in
/home/drawapl1/public_html/bqformtest/index.php on line 40

This is my php code:

            $target = "bqformtest/uploaded_files/"; 
        $target = $target . basename( $_FILES['upload']['name']) ; 
        if(move_uploaded_file($_FILES['upload']['tmp_name'], $target)) 
        {
        echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
        } 
        else {
        echo "Sorry, there was a problem uploading your file.";
        }

This is my form code:

<form method='post' action='' accept-charset='UTF-8' enctype='multipart/form-data'>
<input type="file" name="upload" size="50" />
<input id="submitButton" type='submit' name='Submit' value='' />
</form>

The uploaded_files folders permissions is set to 755. Thanks in advance.

  • 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-05-26T08:38:26+00:00Added an answer on May 26, 2026 at 8:38 am

    Provide full path to file, or right relative path

    $target = "{fullPath}/fileName"; 
    

    the path to file is wrong

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

Sidebar

Related Questions

Hello everyone I been trying get php uploader working but having a lot of
Hello iam trying to store sum information inside a SQL Server table , but
Hello i am learning qt and trying to upload a file using QFtp i
I'm trying to run through the Hello World tutorial for the iPhone and i
Hello there i'm trying to create a form with Zend_Form that will enable my
Hello i am trying to return a struct from a function but i cant
Hello i am trying to find out how can i print a file which
Hello I am trying to get text to display like it does in terminal
Hello I am trying to make a C# program that downloads files but I
I'm trying to make an infinite round rectangle, but I cant seem to get

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.