Window.location.href download file, file address error why not jump to 404 page.

404
Aug.13,2021

what should I do if I don't jump to 404?
you can modify the 404 page to indicate that the file no longer exists
or
if you want to pre-detect whether the file exists, you can send a head request by ajax to determine whether the path is correct. For the incorrect path, you can do extra processing


window.open to open a new page, so 404 is also on the new page
or download by creating iframe to process the error

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bc52-2c2c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bc52-2c2c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?