質問

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