문제

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