formbricks / formbricks

Open Source Survey Platform
https://formbricks.com
Other
6.55k stars 1.1k forks source link

Deleting submission does not delete uploaded files #2950

Closed brandishwar closed 1 week ago

brandishwar commented 1 month ago

Issue Summary

When deleting a survey response, any files uploaded with that response are not deleted with it.

Steps to Reproduce

  1. Identify or create survey with at least one "File upload" question.
  2. Complete survey, uploading several files with it. Response shows in dashboard with attached files.
  3. Hover mouse over download icon on at least one of the file submissions. Note the filename in the URL.
  4. Delete response from step 2.
  5. On the server, navigate to the storage folder. Note that the files were not deleted with step 4.

Expected behavior

All files uploaded with a survey response are deleted when the response is deleted.

Other information

This looks to be an oversight in the tasks for Feature #265

Screenshots

No response

Environment

Desktop (please complete the following information)

OS: Ubuntu 24.04LTS. Installed using using Docker Compose.
mattinannt commented 4 weeks ago

@pandeymangg Would it be possible to implement this? Since this is the expected behaviour when deleting a response, we should find a way to support it :-)