This requires no code changes since it doesn't actually change anything in the codebase, just preventative.
Attach a file by drag & drop or click to upload