SharePoint 2013 ootb upload special characters error message

Occasional Visitor
In sp2013 ootb upload option, if we upload a file with special characters(ex.#,£,$,..) the file will not be uploaded and an error message saying "sorry, something went wrong. The object specified does not belong to a list" will be displayed. How can we change this error message to give a custom error message using js.
0 Replies