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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:20:18+00:00 2026-05-28T18:20:18+00:00

I am trying to upload a file from a php form. I have verified

  • 0

I am trying to upload a file from a php form.
I have verified the target location with my ISP as being “/home/hulamyxr/public_html/POD/”

I get the below error when executing the page:

Warning: move_uploaded_file(/home/hulamyxr/public_html/POD/ 1511.pdf) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/hulamyxr/public_html/hauliers/include/capturelocal2.php on line 124

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpyp3ERS' to '/home/hulamyxr/public_html/POD/ 1511.pdf' in /home/hulamyxr/public_html/hauliers/include/capturelocal2.php on line 124
POD Successfully uploaded for delivery 1511. filename: :

My Form Code

<form enctype="multipart/form-data" method="post" action="capturelocal2.php">
<input type=file size=6 name=ref1pod id=ref1pod>
</form>

My PHP Code to upload the file

$ref1 = $_POST[ref1]; //this is the name I want the file to be
$ref1pod = $_POST[ref1pod]; // this is the name of the input field in the form

  move_uploaded_file($_FILES["ref1pod"]["tmp_name"],
  "/home/hulamyxr/public_html/POD/ " . ($ref1.".pdf"));

Any assistance will be greatly appreciated.
Thanks and Regards,
Ryan Smith

  • 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-28T18:20:19+00:00Added an answer on May 28, 2026 at 6:20 pm

    There is an error in your code:

    You need to change your move_uploaded_file funciton. There is an extra space i think which is causing the problem:

    move_uploaded_file($_FILES["ref1pod"]["tmp_name"],"/home/hulamyxr/public_html/POD/" .($ref1.".pdf"));
    

    Also i am not sure where is the

    $ref1 = $_POST[ref1]; //this is the name I want the file to be
    $ref1pod = $_POST[ref1pod];
    

    coming from .There is no such values in your form. Did you upload only the form with upload only. Also be sure to put quotes around attribute values in your form and post value.

    Is ref1 and ref1pod are constants. If you din’t put quotes PHP will take it as constants. If they are not constants change to:

    $ref1 = $_POST['ref1']; //this is the name I want the file to be
    $ref1pod = $_POST['ref1pod'];
    

    Also in your form, put quotes:

    <form enctype="multipart/form-data" method="post" action="capturelocal2.php">
         <input type="file" size="6" name="ref1pod" id="ref1pod"/>
    </form>
    

    Be sure you set permissions to your upload folder .

    Hope this helps you 🙂

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

Sidebar

Related Questions

I'm trying to extend a form and add an upload file field from within
I am trying to upload file to a php server from my android device.
hi all i am trying to upload image file from sdcard to php server
i have problem on my php file upload script , i am trying to
I am trying to upload a file from a flash widget to my rails
I'm trying to upload a huge file from my Nokia N95 mobile to my
I'm trying to upload a file via FTP from my local computer to an
I am trying to find out how to upload a file from a web
I am trying to do a file upload from gwt-ext without bringing up the
I am trying to upload file using php. I am using the function move_uploaded_file.

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.