how can I find the mime type of a file-url on the web

Viewed 134

Is there a way to check if the file I'm loading from a URL is an image or a video.

How do I differentiate between an image-type & video-type and parse them accordingly on my webpage.

i am using next.js and want to create nft previews on my web app.

0 Answers
Related