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
F18363112: D21832.diff
Wed, Aug 27, 3:44 PM
F18349968: D21832.diff
Tue, Aug 26, 7:01 PM
F18106717: D21832.id.diff
Sun, Aug 10, 11:13 PM
F18098513: D21832.id52042.diff
Fri, Aug 8, 8:42 PM
F18092759: D21832.id.diff
Thu, Aug 7, 12:54 PM
F18089836: D21832.diff
Wed, Aug 6, 12:49 PM
F18045676: D21832.diff
Sun, Aug 3, 9:35 AM
F17849900: D21832.diff
Jul 27 2025, 9:14 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.