laravel-plupload icon indicating copy to clipboard operation
laravel-plupload copied to clipboard

Issue "unknown error" While Uploading image in laravel 8

Open imhsgoraya opened this issue 3 years ago • 5 comments

Symfony\Component\HttpFoundation\File\Exception\FileException: The file "image.png" was not uploaded due to an unknown error. in file /var/www/html/laravel_common_web/vendor/symfony/http-foundation/File/UploadedFile.php on line 213

i am uploading right extension image and right size image which we have specified.

can you help to get what's the error

imhsgoraya avatar Mar 17 '21 04:03 imhsgoraya

I confirm the same issue in Laravel 8.

restyler avatar Apr 09 '21 09:04 restyler

The construct of UploadFile do not accept the filesize anymore.

So, the method receiveChunks should instance the new UploadedFile, without passing the filesize attribute: $file = new UploadedFile($filePath, $originalName, 'blob', UPLOAD_ERR_OK, true); /sizeof => filesize : fix for php 7.2/

jakjr avatar Jun 21 '21 14:06 jakjr

@jakjr Affirmative, it works :rocket:

alariva avatar Jun 22 '21 15:06 alariva

@jakjr Please add a pull request with this fix to the repo so it can get baked into the source.

m33ts4k0z avatar Sep 15 '21 14:09 m33ts4k0z

This issue should be closed since it was fixed via https://github.com/jildertmiedema/laravel-plupload/pull/41

jagers avatar Jun 02 '22 00:06 jagers