Repository navigation
fix: a form's tmp/ uploads aren't orphans - #25
Merged
Merged
Conversation
Gravity Forms keeps uploads of submissions never finished (a file picked, then swapped) in the form's tmp/ folder and deletes them, past 2 days (30 with Save and Continue), only on that form's next submission. The orphan check read them as files that outlived their entry. Under 30 days they're now a note; older ones get their own flag: abandoned uploads on a form nobody has submitted since. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gravity Forms keeps uploads of submissions never finished (a visitor picks a file in the multi-file uploader, then swaps or abandons it) in
gravity_forms/<form>-<hash>/tmp/. It deletes them, once past 2 days (30 with Save and Continue), only when that form is next submitted. The orphan-uploads check scannedtmp/too and called those files uploads that "outlived their entries", which they never had.Now:
tmp/files under 30 days old are counted in a note (tmp_pending), not flaggedretention:abandoned-uploads:<blog>:…: uploads of submissions never finished, on a form nobody has submitted sinceTestRetentionAbandonedTmpUploadscovers the note, the new flag and the orphan flag beside it;go test ./...,go vetandphp -l collector.phppass.🤖 Generated with Claude Code