Find file type using IPFS Hash

Hello,

Is there a function in moralis where we can find the file type using the hash?

TIA,
Zee

it isn’t from what I know, you could try to get the info about the file by trying to read 1 byte or maybe using HEAD

I don’t believe they store types with IPFS and that info wouldn’t be decipherable from the hash. You can do a mime type lookup on the file or a content type lookup on the response received after fetching the IPFS file (if it’s remote).