-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option to enable automatically pin file when upload #2116
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
Thanks for submitting this issue @trim21, is the ask here to have a global option to always "pin" files? Maybe @lidel or @hacdias can elaborate more on this, there seems to be some discussion in this issue: ipfs/ipfs-gui#10 (comment) which seems to indicate that files imported are already implicitly pinned (maybe I'm wrong), I think if that's true, the "pin" feature should just be removed. |
yes, option to pin new files when they are uploaded
Then how do users make sure their files won't get GC-ed... |
@trim21, just wondering if you have been facing loss of data? A simple way to achieve this could be adding a root folder which has the Will that work? |
no, I always manully pin them.
This look a good solution. So are all files in that folder will get pinned, and when I remove them, they will get GC-ed? |
@trim21 that is correct, if that's not the behaviour you experience. I'd like you to share your findings, that'll be a bug in the current implementation and that can be prioritized. |
Thanks, this's the behaviour I want |
Closing this issue as fixed, please feel free to reopen or submit a new issue if you face this again! |
After some time, I find this is not a valid solution... If you pin a directory with 2 files, and you upload a new file, the cid of directory will changed, the directory and newly uploaded file are not automatically pin-ed |
@whizzzkid can you re-open this issue? |
@trim21 ok yes I see what you mean, apologies, reopening this issue. |
I ran across this situation for my use-case too. In general a node keeps the items in the "files" area from being garbage-collected, but for different configurations of "Reprovider > Strategy", there is a setting for "pinned" but not for "in files", so having content be not just "in the local files directory" but actively pinned is important. Having the "pin" action in the "files" area not adjust when a file is uploaded then causes "orphaned pins" to exist (the previous CID of the folder is still pinned, when a new file is uploaded to it, and there's no way to browse/find that pin again in the UI without reverting the change to the folder in "Files"). I'd be in favor of the logic changing to:
|
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
this would behavior like ipfs cli
ipfs add --pin=true ...
current file uploaded by webui doesn't get pinned, behavoir like
ipfs add --pin=false ...
, so I need to pin them manually.I hope we can add a option/flag to make uploaded file automatily pinned, just like
ipfs add --pin=true ...
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: