level51 / silverstripe-s3upload
SilverStripe module for file handling with S3
Installs: 446
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: >=7.4
- aws/aws-sdk-php: ^3.91
- nesbot/carbon: ^1|^2
- silverstripe/framework: ^4.3
- silverstripe/vendor-plugin: ^1.3@dev
This package is auto-updated.
Last update: 2024-11-12 10:30:38 UTC
README
Adds a Level51\S3\S3File data object and an appropriate uploader.
Features
- S3UploadField with direct uploads from the browser to S3 - no local file storage needed
- S3File data object, independent from other SilverStripe files
Config
Mandatory S3 config
Level51\S3: AccessId: ********** Secret: ******************** bucket: MY_BUCKET_NAME # can also be set per field
Default config
Level51\S3: default_region: eu-central-1 # default region, can be set per field acl: private maxFileSize: 512 # default max file size in mb, can be set per field acceptedFiles: # file extension or mime type used as default, can be set per field - video/* - image/*
Optional config
Level51\S3\S3UploadField: ExtensionToMimeTypeOverrides: psd: image/vnd.adobe.photoshop
Requirements
- SilverStripe ^4.3
- aws-sdk-php ^3.9.1
Maintainer
- Level51 hallo@lvl51.de