This Code i written to download a resume : Inside a button
onclick="window.location.href='/Uploads/Resume/1.docx'"
The file is downloading but if file not found in that path then i have to show a message Like file is not Found How can I do this
This Code i written to download a resume : Inside a button
onclick="window.location.href='/Uploads/Resume/1.docx'"
The file is downloading but if file not found in that path then i have to show a message Like file is not Found How can I do this
Your web browser will already do that, as it does for any web path that returns a 404
error.
So simply let that mechanism do its job.