-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A form without "save answers" still saves the file uploads #7711
Comments
We've added a listener for now that wipes all files but the latest. The newly uploaded files are needed to generate the email (they have be somewhere) but we could not find a suitable "after email sent" hook to wipe them afterwards. This solution is okay in our case but not ideal.
We've tried to wipe the complete folder using the FormSubmitted handle but that does not work since the new files are already uploaded. |
This will be addressed in Statamic v5. You'll be able to use the "Files" fieldtype for file uploads which shouldn't be stored on the server. |
@duncanmcclean Does this mean there is still no way to address this in v4? |
Yes, that's correct. It'll only be possible in Statamic 5 which is coming in the next few weeks. |
Bug description
Even with "save answers" unchecked the file uploads remain inside the selected folder.
We have a form on our website where the user can upload sensitive content - including up to three images. We don't want that on the server and only send it by mail.
How to reproduce
Create a form with file upload, uncheck "save answers", select a mail address instead.
Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
runtime (new)
Additional details
No response
The text was updated successfully, but these errors were encountered: