UsergeTeam / Userge-Plugins

Plugins for Userge
https://userge.tech
GNU General Public License v3.0
135 stars 327 forks source link

Plugin Request #195

Closed devsdocs closed 2 years ago

devsdocs commented 3 years ago

My idea is Userge able to "curl POST" to Infura.io (IPFS FREE pinning service) API.

The idea is execute curl command from file that already downloaded to Userge download directory.

curl -X POST -F file=@'userge/file/dir' "https://ipfs.infura.io:5001/api/v0/add?pin=true"

And then return the IPFS file hash in "Qm...somerandomchar" and the file name if possible

Current infura.io limit is 100MB, but still it is free pinning service.

Some docs to refer: https://infura.io/docs/ipfs#operation/add

Would be thankful if this method can be applied. Thank you