I'm trying to determine if an image exists before inserting it into the site.
I've tried all the methods here and all of them return a negative for an image I know exists. For example:
$.ajax({
url:'https://s3-eu-west-1.amazonaws.com/stuffstory-v2-filepicker/thumbnails/5547b98e357a7f425f8b4570/555340a1357a7f673a8b456b.png',
type:'HEAD',
error:
function(){
console.log('No image')
},
success:
function(){
console.log('There is an image')
}
});
Returns a no image result, but when if you follow the link: Image It's clearly there.
I am utterly flummoxed as to why.