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
F13198318: D21832.diff
Mon, May 13, 5:44 AM
F13185583: D21832.diff
Sat, May 11, 3:01 AM
F13183063: D21832.diff
Fri, May 10, 6:40 AM
Unknown Object (File)
Tue, May 7, 1:59 AM
Unknown Object (File)
Sat, May 4, 10:39 AM
Unknown Object (File)
Fri, May 3, 3:10 AM
Unknown Object (File)
Mon, Apr 29, 2:40 PM
Unknown Object (File)
Sun, Apr 28, 5:11 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.