Check to see if a text area's `val` is defined before trying to call `replace()` on it.
Attach a file by drag & drop or click to upload