closes the internal file object in case of an error (issue #7341).
Attach a file by drag & drop or click to upload