Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

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

plugins

Started by 01K 6 years ago · 0 replies · 661 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 themetman, 24 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago