Closed lucastsudaka closed 2 years ago
Probably the file name result of the chunks are too long for your filesystem to handle. Filenames on ext4 can not be longer then 256 bytes. Currently running into the same issue
Fixed this by using a custom upload handler
class ResumableJSUploadHandler extends BaseResumableJSUploadHandler
{
public function getChunkFileName()
{
return $this->createChunkFileName(substr($this->fileUuid, 0, 23), $this->getCurrentChunk());
}
}
Worked for me
We can then use md5 for better uuid, what do you think?
Thanks @Tim-NP for a solution
Hello, I'm using resumable.js and Laravel 5.8 The service is working well, but not when i try to upload this file:
Line 214: vendor\symfony\http-foundation\File\UploadedFile.php
throw new FileException(sprintf('Could not move the file "%s" to "%s" (%s)', $this->getPathname(), $target, strip_tags($error)));
Basically, the error happen when the filename is:
But if i rename the file to:
1.png
The error does not happen.