We don't need to open the files in text mode just to create them (or update their modification time).
Attach a file by drag & drop or click to upload