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?

没有正确的解决方案

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top