I have searched quite a lot now about how I can download a photo stored with IPFS having the hash in HTML.

I have tried using the hash and

<a  href={`https://ipfs.io/ipfs/hashKey`} download="newImg.jpg"></a>

but the problem is that it opens the photo and doesn't force the download of it. I guess it is because it doesn't have a .jpg/.png ending.

Any suggestions on how this would be possible? Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.