我需要帮助将我的图像从 Parse 移动到 AWS 上的 S3。我已经查看了许多所谓的指南和 GitHub 项目,但一切都仅限于为您提供所有信息。有人甚至说,您需要设置 GCS 存储桶,但没有详细说明如何设置。请有人帮我解决这个问题。我在我的 index.js 中为应用程序设置了 S3 文件适配器,但没有任何图像存在,它们仍然托管在解析中。
最佳答案
如果您指的是由 parse.com 托管的旧图像,并且希望将其移动到您自己的环境中,则可以使用实用工具来完成。
Get all files across all classess in a Parse database.
Print file URLs to console OR transfer toS3
,GCS
, orfilesystem
.
Rename files so that Parse Server no longer detects that they are hosted by Parse.
UpdateMongoDB
with new file names.
https://github.com/parse-server-modules/parse-files-utils
如果您正确设置了 S3 存储桶,那么您应用中的所有新图像都将存储在此处。
https://github.com/ParsePlatform/parse-server/wiki/Configuring-File-Adapters
关于ios - 将图像从 Parse 移至 S3 AWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41026658/