level51/silverstripe-s3upload

SilverStripe module for file handling with S3

Installs: 56

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

0.1.0 2019-06-06 00:00 UTC

README

Adds a Level51\S3\S3File data object and an appropriate uploader using dropzone.js.

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\S3:
  AccessId: **********
  Secret: ********************

Default upload field config

Level51\S3\S3UploadField:
  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
  timeout: 60 # default upload timeout in seconds, can be set per field 
  acceptedFiles: # file extension or mime type used as default, can be set per field
    - video/*
    - image/*

Requirements

  • SilverStripe ^4.3
  • aws-sdk-php ^3.9.1

Maintainer