(write-file): Omit directory part when making default file name.
Attach a file by drag & drop or click to upload