Skip to content
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

[4.x] Remove any uploaded assets when submission silently fails or validation fails #9549

Conversation

ryanmitchell
Copy link
Contributor

Before this PR if you silently fail a form submission through a FormSubmitted listener, or throw a validation exception in a FormSubmitted listener, any assets uploaded persist in the file system.

This PR changes that so any uploaded assets are removed.

@jasonvarga jasonvarga merged commit 8193ac9 into statamic:4.x Feb 20, 2024
18 checks passed
@ryanmitchell ryanmitchell deleted the fix/clear-uploaded-assets-when-validation-fails branch February 20, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants