pexavc / IPFSKit

An IPFS client/api Swift Package, with the ability to add and pin any data on iOS/iPadOS/macOS. Originally bundled with GraniteUI, pulled out for independant use by any party.
MIT License
4 stars 5 forks source link

Download uploaded image #2

Closed nick70007 closed 1 year ago

nick70007 commented 2 years ago

In my SwiftUI App i have managed to upload images to ipfs server but cannot able to download as per the method change from get to post. Is there any workaround? Do let me know. Thanks

boni1000 commented 2 years ago

Hi! I'm pretty new in IPFS field. Can you suggest me where can I find more detail documentation regarding how to download files from IPFS using this library. Thank you in advance!

pexavc commented 1 year ago

In my SwiftUI App i have managed to upload images to ipfs server but cannot able to download as per the method change from get to post. Is there any workaround? Do let me know. Thanks

The gateway hash should technically be the endpoint to create a get request to download the target asset. Apologies for getting to these issues so late. But, let me know if you need any help, I will circle back on updating this implementation soon to keep it up to date to infura's recent changes.

@nick70007

pexavc commented 1 year ago

@nick70007 @boni1000 I am back to updating this package. Sorry for the delay as I have been really busy with personal life last year.

I seem to be able to download. But, this time around I am adding a whole interface for actions like that, that will be easier to invoke.