like facebook attach link,
when i share a link -> facebook fetch the html page
when i share a image link -> facebook fetch the image
so at server side (.NET, C#), how can i distinguish a html link or image link
any help?
like facebook attach link,
when i share a link -> facebook fetch the html page
when i share a image link -> facebook fetch the image
so at server side (.NET, C#), how can i distinguish a html link or image link
any help?
You could try a couple things:
\.(png|jpg|gif|bmp)$
Also, check answers to this question:
Regex to check if valid URL that ends in .jpg, .png, or .gif
The most recent answer there mentions a library called FastImage.