Instead use Text.Read.readMaybe and panic with custom error message.
Attach a file by drag & drop or click to upload