codem/silverstripe-damn-fine-uploader
Composer 安装命令:
composer require codem/silverstripe-damn-fine-uploader
包简介
An HTML5 upload field for Silverstripe 4, including editable form fields for silverstripe/userforms
README 文档
README
An upload field that can be used to upload files to a Silverstripe website.
The frontend uses Uppy to handle & submit client uploads.
Features
- a page model + controller allowing upload of one or more files to a chosen folder
- support for userforms via an editable upload field
- mime type validation via silverstripe/mimevalidator
- sub resource integrity (SRI) support for generated requirements
- thumbnail generation of uploaded images for the silverstripe/asset-admin
- min/max image dimension verification (via Uppy)
- configurable file size restrictions
- restrict uploads by one or more file types
- restrict uploads by file size
This module is not intended for use in the Silverstripe administration area, use the standard UploadField for that.
Installing
composer require codem/silverstripe-damn-fine-uploader
Upload security
In the module and administration area
- Set asset folders chosen as upload targets to be restricted (i.e no public access)
- Verify the above by attempting to access file URLs anonymously
Generally
- Use the
publicdirectory setup process available in more recent versions of Silverstripe - Ensure your web server is configured to not serve files that can be considered dangerous if they are served from an upload directory
- Review upload fields periodically to ensure they are configured correctly
Configuration
Have a look in _config/config.yml for various configuration options and see also Default Configuration
Modify the signing_key value in your project configuration, along with anything else you like (e.g upload size limits)
The implementation entry can be used to add any configuration value supported by the field.
Fields
See fields documentation for examples.
Browser support
All the good ones. The Uppy website provides a list of supported browsers
Even though Uppy purports to support Internet Explorer, any bugs raised related to Internet Explorer will be closed.
Issues
Please add feature requests and bug reports to the Github issue tracker
Security
If you have found a security issue in this module, please email git {at} codem dot com dot au in the first instance.
License
BSD-3-Clause
Roadmap
- File removal support in Uppy
- Grouped uploads
- Possible usage of the
filepondlibrary as an alternative frontend implementation
Thanks
Thanks for reading, here's a silly meme:
codem/silverstripe-damn-fine-uploader 适用场景与选型建议
codem/silverstripe-damn-fine-uploader 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.69k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「HTML5」 「uploader」 「silverstripe」 「uploads」 「file upload」 「uppy」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 codem/silverstripe-damn-fine-uploader 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 codem/silverstripe-damn-fine-uploader 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 codem/silverstripe-damn-fine-uploader 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
HTML5 support for SilverStripe
An HTML5 upload field for the CMS and frontend forms.
HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites.
Smart file uploader for Laravel
The yii2-videojs-widget is a Yii 2 wrapper for the [video.js](http://www.videojs.com/). A JavaScript and CSS library that makes it easier to work with and build on HTML5 video. This is also known as an HTML5 Video Player.
统计信息
- 总下载量: 6.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 13
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-04-04
