fileupload
fileupload copied to clipboard
PHP FileUpload library that supports chunked uploads
Fixed "Trying to access array offset on value of type null in FileUpload\FileNameGenerator\Random.php" with simple not empty check on "content_range[1]" variable.
Hi, the packagist is not updated
Is there PHP 8.x support planned?
https://github.com/Gargron/fileupload/blob/18c992bb738d1238961664009cd35726a92ee055/src/FileUpload/Validator/SizeValidator.php#L105 `$file->size` should be used instead of `$file->getSize()`
So for some reason when I pass big files, on some (no idea on what criteria) I get that finfo_file() doesn't recieve a file path. And indeed, when I var_dump()...
At least not for me. When I try the example from the readme, I always get that getRealPath() is not defined on stdClass
1. Code example provides only POST-request processing. GET-requests with validation file status not processed (`/upload?file=8562-172094-181.pdf`). No code for that provided with plugin. 2. File-type of the chunks checks working incorrect...
It would be neat if you could utilize the Gaufrette library for filesystem abstraction. https://github.com/KnpLabs/Gaufrette
``` example request header Range: bytes=0-2000 response header Content-Range: bytes 0-2000/4932 ``` but the library use `$this->server['HTTP_CONTENT_RANGE']` in `FileUpload.php` to judge if chunked, is it correct?