Prevent "cannot read property of undefined" errors on the JS side.
Attach a file by drag & drop or click to upload