verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 69 forks source link

Uploaded files from within form groups won't be deleted (data retention) #1656

Closed mandrasch closed 6 months ago

mandrasch commented 6 months ago

Describe the bug

Hi,

we have several upload fields in form group fields.

I have set these settings locally to verify that garbage collection is working (in DDEV):

image

When I run craft gc --interactive=0 after 3 minutes, the submission is successfully deleted from Formie > Submissions. But the files are still in my storage/form-uploads folder. The files are still in the local file system as well as in the database as asset in that volume.

Steps to reproduce

  1. Create form with form groups and upload fields within them
  2. Save submission
  3. Run garbage collection --> check if uploaded fields were successfully deleted

Form settings

Craft CMS version

4.5.11.1

Plugin version

2.0.42

Multi-site?

Yes

Additional context

Thanks very much in advance for support!

Docs:

engram-design commented 6 months ago

Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-4 as 2.0.43".

engram-design commented 6 months ago

Fixed in 2.0.44

mandrasch commented 6 months ago

Nice, thanks very much for the quick fix! 👍 👍