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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:42:57+00:00 2026-05-29T20:42:57+00:00

I am using copy and move_uploaded_file() copy(/tmp/phpJ0lg4r.jpeg) [function.copy]: it gives me the error failed

  • 0

I am using copy and move_uploaded_file() copy(/tmp/phpJ0lg4r.jpeg) [function.copy]: it gives me the error failed to open stream: No such file or directory in

I do not think there is an error in the code, but its the image temp path somewhere the error.

Any ideas to why?

–EDIT–

  1. The file permission is :777
  2. Using only move_uploaded_file

—CODE–

<form method="post" enctype="multipart/form-data" action="">  
        <INPUT NAME="u" TYPE="file" size="90">
    <input type="submit" value="submit">
</form>


move_uploaded_file($HTTP_POST_FILES['u'.$i]['name'],"Path_Of_Directory");

Though there are several checks of the type of file, this is the basic. It just does not copy or move the file.

  • 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-29T20:42:58+00:00Added an answer on May 29, 2026 at 8:42 pm

    Try

    move_uploaded_file($_FILES["u"]["tmp_name"], "Path_Of_Directory");

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

Sidebar

Related Questions

I am using this copy directory helper addon for the directory helper to help
How do i copy one excel file to another excel file using VBA How
I'm using the PHP copy function to copy an image after upload to a
I have a list of files that I'm trying to copy and move (using
When using copy-on-write semantics to share memory among processes, how can you test if
I have been using this copy method for quite a while, in lots of
When copying large files using shutil.copy() , you get no indication of how the
.NET: How can I copy the files using Windows Copy Files dialog. I need
When I create a graph after using range.copy and range.paste it leaves the paste
Whenever I try to copy an entire working copy using simple drag and drop

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.