Is the file hash stored on IPFS or the block itself?

The file hash string is stored in the block itself on the blockchain, not on IPFS. You may view the file hash by accessing your token on the ERC721 token management page and clicking on the “check token URI” button.

View file hash in NFT