is a directory before asking whether to use the file name (bug#7564).
Attach a file by drag & drop or click to upload