Page MenuHomePhabricator

Only attach files that are both referenced in Remarkup and attached by explicit metadata
ClosedPublic

Authored by epriestley on May 20 2022, 5:48 PM.
Tags
None
Referenced Files
F19363545: D21832.diff
Fri, Dec 26, 11:28 AM
F19303118: D21832.id52033.diff
Tue, Dec 23, 6:19 PM
F19236206: D21832.diff
Sun, Dec 21, 7:03 PM
F19162364: D21832.diff
Dec 15 2025, 5:01 PM
F19136862: D21832.id52033.diff
Dec 10 2025, 9:53 AM
F19136236: D21832.id52033.diff
Dec 10 2025, 9:19 AM
F19072719: D21832.id52042.diff
Nov 30 2025, 11:29 PM
F19059144: D21832.id52042.diff
Nov 29 2025, 4:36 AM
Subscribers
None

Details

Summary

Ref T13682. When a user uploads a file, then changes their mind and deletes the reference to the file, we don't actually want to attach the file.

When choosing which files to attach, only attach files which are both referenced in Remarkup and explicitly attached in remarkup metadata.

Test Plan
  • Dropped a file into a comment, submitted it, saw it attach normally.
  • Dropped a file into a comment, deleted the reference, submitted it, saw no attachment.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 23 2022, 9:08 PM
This revision was automatically updated to reflect the committed changes.