定制 digitalpulsebe/craft-public-upload-detector 二次开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2026-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固