ipfs / service-worker-gateway

IPFS Gateway implemented in Service Worker
https://inbrowser.link
Other
27 stars 8 forks source link

Input format validation doesn't match up with expected format #66

Closed achingbrain closed 6 months ago

achingbrain commented 8 months ago

Hitting https://ipfs.sw.sgtpooki.com tells you to use a /ipfs/bafk.../path/to/file-style IPFS path:

image

Filling in the field with an IPFS path tells you to use a ipfs://-style IPFS URI:

image

Switching to an IPFS URI tells you to use an IPFS path:

image
achingbrain commented 8 months ago

This will resolve part of the problem - https://github.com/ipfs/helia-verified-fetch/pull/4

Input validation should be relaxed to accept more than just /ip[f|n]s/...

SgtPooki commented 8 months ago

@achingbrain I think that helper-ui may go away or change eventually. But yea, accepting proper formats or updating that input to accept the changes we've made with adopting @helia/verified-fetch would be a good thing until that change.