定制 level51/silverstripe-s3upload 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

level51/silverstripe-s3upload

最新稳定版本:3.0.1

Composer 安装命令:

composer require level51/silverstripe-s3upload

包简介

SilverStripe module for file handling with S3

README 文档

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 | ^5 | ^6
  • aws-sdk-php ^3

Maintainer

统计信息

  • 总下载量: 526
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-09