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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:04:16+00:00 2026-06-16T22:04:16+00:00

I just don’t get it, why won’t it upload the photo. Having the following

  • 0

I just don’t get it, why won’t it upload the photo.

Having the following in my Input::all():

Array
(
    [name] => p17fp1pnaa1gpr5otdg1ba3fd4v.jpg
    [file] => Array
        (
            [name] => tumblr_ltaruq6XCH1qc4lrfo4_400.jpg
            [type] => image/jpeg
            [tmp_name] => C:\xampp\tmp\php9A20.tmp
            [error] => 0
            [size] => 48382
        )

)

I try to upload the file to a tmp dir, but it won’t do it…

$tmp_input = Input::all();
#$tmp_input = $tmp_input['file'];
Input::upload('photo', path('public').'uploads/tmp', $tmp_input['file']['name']);

$tmp_input['file']['name'] or $tmp_input['name'], doesn’t work either

Yes, the uploads/tmp folder exists. Am I missing something from the syntax for which won’t it do the upload?

  • 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-16T22:04:17+00:00Added an answer on June 16, 2026 at 10:04 pm

    Just so others may know, I had to use move_uploaded_file() function as I couldn’t upload the file with any function of Laravel.

    so this is what I did

    $tmp_input   = Input::all();
    $destination = $this->tmp_dir.$tmp_input['name'];
    move_uploaded_file($tmp_input['file']['tmp_name'], $destination);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just don't get it. My case is, that my application is sending all
I just don't get it. I have a function to read stemmed strings from
I just don't get it. Any manual is too technical. What are flat and
I just don't get it: when I use the camera with an intent and
I just don't want my WebBrowser to execute javascript at all. I don't need
There's something I just don't get regarding config files and dev or prod environments.
is there a possibility to encrypt or just don't display the Get Parameters in
It is quiet embarrassing but I just don't get it. How should I browse
We have a class example and I just don't get it. I don't quite
I just don't get it where is the problem but here's the error: Fatal

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.