-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
S3 File adapter - accessing previous, non-s3 files #6273
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
Comments
A PR was submitted just for this purpose. parse-community/parse-server-s3-adapter#79 I'll do a release right now so that you use it without having to update your server. You could use parse-files-utils to transfer the files. |
Thank you very much @dplewis ! So what should I do now? I'm kinda lost! |
Wait for the 1.4.0 release of the adapter. Remove
Add |
And after that, it will know where each file is? MongoDB or DO Space? |
Parse Server doesn't currently allow multiple file adapters. Therefore, I recommended the migration tool. |
So wait, I'm confused! Do I have to transfer all the files from Mongo to the DO Space? Wouldn't that PR you mentioned take care of it? (sorry for bothering you, but I really have no idea of how all these work)
I mean wouldn't it separate the MongoDB files and the DO files? |
A fileAdapter is used to access the files. Since you changed GridStoreAdapter, you can't use it to fetch files anymore from Mongo.
Yes they will be separated. You could use a workaround to access the mongo files. |
And that would be the PR you're going to release? |
Ok! Thank you very much! |
Hey @dplewis once more 😄I'm sorry for bothering you again, but I'm desperate! I'm stuck in the migration process and there's really not much I could find! The repo you sent me above, parse-files-utils can it be used to transfer my files to an S3 bucket? If so, how exactly? I started following the guide, but as soon as I hit
Any ideas? |
That is an old repo. I’d recommend forking it and make changes you need and run it. The core logic is there on how to get the all files from the Schema and transfer them. |
We have a mobile app that runs on Parse Server 2.8.4, hosted at DigitalOcean. We were using the default file adapter (GridStoreAdapter) and now we want to use Spaces by DigitalOcean. This is our updated index file:
Everything works great! The files are stored and retrieved properly, except of the old ones! Every image that was stored with the GridStoreAdapter cannot be fetched anymore! Is there anything that can be done in order to be able to view both old and new files?
The text was updated successfully, but these errors were encountered: