[英]Uploading image to S3 using AWS AppSync on IOS
I am following these instructions to upload a file to S3
through AppSync
from my IOS client, in which I am told to include the local uri
when creating a S3Object
as part of my mutation request. 我正在按照以下说明从IOS客户端通过
AppSync
将文件上传到S3
,并告诉我在创建S3Object
作为S3Object
请求的一部分时包括local uri
。 However, what if I have the image Data
and want to work with that directly instead? 但是,如果我有图像
Data
并想直接使用它怎么办?
I know I can upload Data
to S3 using TransferUtility
, how can I achieve the same goal through AppSync directly? 我知道我可以使用
TransferUtility
将Data
上传到S3,如何通过AppSync直接实现相同的目标?
Currently, AppSync only supports the upload of a file to S3 and doesn't offer the capability of uploading a data object directly. 当前,AppSync仅支持将文件上传到S3,不提供直接上传数据对象的功能。 I will work with the AppSync team to get this into their queue as a feature request.
我将与AppSync团队一起将其作为功能请求放入他们的队列。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.