digitalpulsebe/craft-public-upload-detector
Composer 安装命令:
composer require digitalpulsebe/craft-public-upload-detector
包简介
Detect form fields that upload to a public folder
README 文档
README
Detect form fields that upload to a public folder
Requirements
This plugin requires Craft CMS 4.3.5 or later, and PHP 7.4 or later.
Installation
ddev composer require digitalpulsebe/craft-public-upload-detector ddev craft plugin/install public-upload-detector
Config
create a file called public-upload-detector.php in your config folder
<?php return [ 'restrictFormie' => true, 'restrictFreeform' => true, 'allowedPublicVolumeHandles' => [ 'myPublicVolumeHandle' ] ];
Usage
Detecting form fields that upload to a public folder
Run the command php craft public-upload-detector/check to detect form fields that upload to a public folder
Enforce data retention on forms
Run the command php craft public-upload-detector/data-retention/enforce to enforce data retention on forms
Options:
--days=90- Number of days to retain data (default: 90)--keep=false- Keep or delete file uploads (default: false)
For example: php craft public-upload-detector/data-retention/enforce --days=30 --keep=true
统计信息
- 总下载量: 772
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2026-01-20