Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Contact form: how to delete attached files from file system after form submission?

plugins

Started by 01K 6 years ago · 0 replies · 411 views
6 years ago

The working file attachment in a contact form looks like this:

YAML
-
  name: my-file
  label: 'Attach some files'
  type: file
  multiple: true
  limit: 5
  filesize: 6
  destination: user/data/files
  accept:
    - application/pdf
    - application/x-pdf
    - 'image/*'

Files are attached and sent with email. But those files are stored in a filesystem and they are growing.
Is there a default options to clear them or it could be done only with a CRON?

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 95 15 hours ago
General · by pamtbaau, 20 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 356 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago