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.