Disabling default pinning when adding files via API
Open
kind/feature
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
It's my understanding that adding automatically does a recursive pin, and that this can be disabled in the cli command by setting pin=false.
If there is a ipfs daemon serving as a gateway where any type of client can upload/add files, how I can disable pinning?
I see that the default is to pin in both the JS and Go APIs (https://github.com/ipfs/js-ipfs/blob/master/src/core/components/files.js#L95 , https://github.com/ipfs/go-ipfs/blob/master/core/commands/add.go#L116) and so my thought is that the only way to do this (without modifying the source code) would be to rewrite incoming requests, ex:
`/api/v0/add` to `/api/v0/add?pin=false`
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.