Surprisingly, it turns out there was no test that exercised this code path.
Attach a file by drag & drop or click to upload