We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to specify file_size_limit and allowed_mime_types when creating a bucket. This will help bring the library up to LW7 feature parity.
file_size_limit
allowed_mime_types
Borrowing from the
$storage = new Storage\StorageClient($url, [ Authorization' => 'Bearer ' . $service_key, ]); // Create Bucket with file size limit 20mb $opts = [ 'public' => true, 'fileSizeLimit' => '20mb', 'allowedMimeTypes' => ['image/jpeg'], ]; $result = $storage->createBucket('my-new-storage-bucket', $opts); $bigFile = ... // 1GB try { $result = $storage->upload($file_path, $bigFile); } catch ($e) { expect($e).toEqual({ error: 'Payload too large', message: 'The object exceeded the maximum allowed size', statusCode: '413', }); }
The text was updated successfully, but these errors were encountered:
Merge pull request #7 from zero-copy-labs/sup-15-publish-workflow
3a54051
Sup 15 publish workflow
No branches or pull requests
Feature request
Ability to specify
file_size_limit
andallowed_mime_types
when creating a bucket. This will help bring the library up to LW7 feature parity.Describe the solution you'd like
Borrowing from the
The text was updated successfully, but these errors were encountered: