Question

I'm trying to make a image upload in lavarel 4. The upload passes by

The file "C:\xampp\tmp\phpD1F3.tmp" does not exist

This is my upload code :

$file = Input::file('image');

// Get extension
$extension =$file->getClientOriginalExtension();

// Generate a file name
$fileName = 'pool' . Str::quickRandom();
$fileNameExtension = $fileName . '.' . $extension;

// Process upload
Input::file('image')->move(public_path() . '/uploads/images/app/pools/original/', $fileNameExtension);

`

I don't know why i get this error , please can anyone help me to solve this?

No correct solution

OTHER TIPS

You are probably making some operations on "uploaded" file after moving it to server by move() function. Please make sure there is no operation made on temporary file after calling Input::file('image')->move() function.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top