digitalpulsebe/craft-public-upload-detector

Detect form fields that upload to a public folder

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:craft-plugin

pkg:composer/digitalpulsebe/craft-public-upload-detector

5.0.0 2026-01-21 07:20 UTC

This package is auto-updated.

Last update: 2026-01-21 07:31:14 UTC


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