ios - 将图像从 Parse 移至 S3 AWS

标签 ios mongodb amazon-web-services parse-platform amazon-s3

我需要帮助将我的图像从 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 to S3, GCS, or filesystem.
Rename files so that Parse Server no longer detects that they are hosted by Parse.
Update MongoDB 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/

相关文章:

ios - 对音量按钮没有响应 - objective-c

ios - 针对所有企业的 MKLocalSearch 请求

html - 使用 Angular 和 Node js 的单页应用程序

amazon-web-services - 具有 Cloudformation 动态引用的 AWS Proton 模板

ios - 在 UICollectionView 中创建部分

ios - 来自蓝牙模块的未知数据类型

mongodb - Mongoose/mongodb - 删除嵌入文档

node.js - 替换文档不得包含原子运算符

amazon-web-services - ssh : connect to host ec2-xxxxxxxx. compute-1.amazonaws.com 端口 22:连接被拒绝

node.js - 带有 Amazon Load Balancer 的 Socket.io,应该转发哪些端口?