gbcl / fof-upload-qcloud
FoF/upload TencentCloud COS support
Installs: 292
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 1
Forks: 2
Type:flarum-extension
Requires
- php: ^8.0
- big-dream/cdn-url-auth: 0.0.2
- fof/upload: ^1.2
- overtrue/flysystem-cos: ^3.0
README
A Flarum extension. An extension for FoF Upload to support Tencent COS upload
Installation
Install manually with composer:
composer require gbcl/fof-upload-qcloud
After installation, you must set the following settings in the admin panel:
qcloud_secret_id
qcloud_secret_key
qcloud_region
qcloud_bucket
qcloud_path
qcloud_domain
then you need to set the adapter and template to Tencent COS
and corresponding template.
If these settings are not set correctly, the upload will fail and will cause a fatal error.
Updating
composer update gbcl/fof-upload-qcloud php flarum cache:clear
Features
- Support audio/picture/video/pdf preview and common download
- Support file signature and custom signatureToken name/time
- Support most commonly used regions
Links
Special
VideoTemplate is using DPlayer@1.27 By DIYgod
PdfTemplate is using PDFObject@latest By PDFObject
Support my works at afdian.net