Use utility function isTextFile to determine whether its a text file or binary
Attach a file by drag & drop or click to upload