This avoids a slow Gitaly call. We already have the filename in memory, so can use it directly here.
Attach a file by drag & drop or click to upload