Skip to content
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

Question about direct uploads #11

Open
fauno opened this issue Feb 28, 2021 · 0 comments
Open

Question about direct uploads #11

fauno opened this issue Feb 28, 2021 · 0 comments

Comments

@fauno
Copy link

fauno commented Feb 28, 2021

I was checking the direct uploads feature, from what I understand the file is going to be uploaded directly to the IPFS API, but this needs to be the uploaders local node or otherwise an IPFS node that's open to everyone, right?

Wouldn't it be better to generate an adhoc URL like DiskService, receive the file and internally upload it to the server's IPFS node that can be local or anywhere else, but not publicly open?

If you're interested I can write a patch, and I think this will remove the need for monkey patching ActiveStorage::DirectUploadsController and ActiveStorage::Blob, unless there's a need for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant