pionl / laravel-chunk-upload

The basic implementation for chunk upload with multiple providers support like jQuery-file-upload, pupload, DropZone and resumable.js
MIT License
617 stars 167 forks source link

Declaration of Pion\Laravel\ChunkUpload\Handler\SingleUploadHandler::startSaving($chunkStorage, $config) must be compatible with Pion\Laravel\ChunkUpload\Handler\AbstractHandler::startSaving($chunkStorage) #35

Closed m-develops closed 6 years ago

m-develops commented 6 years ago

I am getting the below error. I think the method startSaving in the SingleUploadHandler should be changed from

public function startSaving($chunkStorage, $config)

to:

public function startSaving($chunkStorage, $config= null)

Error:

exception
:
"Symfony\Component\Debug\Exception\FatalErrorException"
file
:
"/home/forge/www.maklerportal.app/vendor/pion/laravel-chunk-upload/src/Handler/SingleUploadHandler.php"
line
:
0
message
:
"Declaration of Pion\Laravel\ChunkUpload\Handler\SingleUploadHandler::startSaving($chunkStorage, $config) must be compatible with Pion\Laravel\ChunkUpload\Handler\AbstractHandler::startSaving($chunkStorage)"
trace
:
[]
pionl commented 6 years ago

Fixed in #34