I am testing an image hosting script but there is one issue,when I drag and drop the image to my webpage, it's uploading, but when I hit the F5/refresh button the unfinished image is hosted to my folder,how can I check if an image is broken using php or send a jquery (XHR) request to the php file to stop the upload?