You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing the SDK and noticed an issue when trying to upload larger files. Seems like the limit seems to be 5 megabytes. The error comes from the line below. I tried to debug this bug could not figure it out. Seems like it is splitting the file to chunks/parts and this might have something to do with it. I also could not find any mention about this limit in the documentation.
head -c 5M </dev/urandom > /tmp/test5mb.zip
> File::uploadFile('/test.zip', '/tmp/test5mb.zip');
true
Does not work:
head -c 6M </dev/urandom > /tmp/test6mb.zip
> File::uploadFile('/test.zip', '/tmp/test6mb.zip');
TypeError preg_match(): Argument #2 ($subject) must be of type string, null given.
vendor/files.com/files-php-sdk/lib/Api.php:52
The text was updated successfully, but these errors were encountered:
Hi,
I was testing the SDK and noticed an issue when trying to upload larger files. Seems like the limit seems to be 5 megabytes. The error comes from the line below. I tried to debug this bug could not figure it out. Seems like it is splitting the file to chunks/parts and this might have something to do with it. I also could not find any mention about this limit in the documentation.
https://github.com/Files-com/files-sdk-php/blob/master/lib/Api.php#L52
Works:
Does not work:
The text was updated successfully, but these errors were encountered: