简体   繁体   English

AWS Amplify Storage.put() 无法读取未定义的属性(读取“byteLength”)

[英]AWS Amplify Storage.put() Cannot read properties of undefined (reading 'byteLength')

I created an amplify react native app and attached a S3 Bucket manually, when I called the function "Storage.put()" it displayed this error.我创建了一个放大反应本机应用程序并手动附加了一个 S3 存储桶,当我调用 function“Storage.put()”时它显示了这个错误。

在此处输入图像描述

This is my code.这是我的代码。

在此处输入图像描述

Auth Configuration授权配置

在此处输入图像描述

Add await for Storage.put() :Storage.put()添加await

let data = await Storage.put('cheque/cheque_1', blob)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase Storage`uploadBytes`:“TypeError:无法读取未定义的属性(读取‘byteLength’)” - Firebase Storage`uploadBytes`: "TypeError: Cannot read properties of undefined (reading 'byteLength')" TypeError:无法使用 nodejs 读取未定义的属性“byteLength” - TypeError: Cannot read property 'byteLength' of undefined with nodejs 无法读取 dynamodb 客户端的 aws-sdk js v3 未定义的属性“byteLength” - Cannot read property 'byteLength' of undefined for aws-sdk js v3 for dynamodb client Firebase:无法读取未定义的属性(读取“indexOf”) - Firebase: Cannot read properties of undefined (reading 'indexOf') TypeError:无法读取未定义的属性(读取存储) - TypeError:Cannot read propreties of undefined (reading storage) TypeError: undefined is not an object (evaluating '_storage.default.put') while using AWS Amplify Storage in Expo 反应本机 - TypeError: undefined is not an object (evaluating '_storage.default.put') while using AWS Amplify Storage in Expo react native TypeError:无法读取未定义的属性(读取“authService”) - TypeError: Cannot read properties of undefined (reading 'authService') 类型错误:无法读取未定义的属性(读取“缓冲区”) - TypeError: Cannot read properties of undefined (reading 'buffer') TypeError:无法在 it.fromString 处读取未定义的属性(读取“indexOf”) - TypeError: Cannot read properties of undefined (reading 'indexOf') at it.fromString 无法读取未定义的属性(读取“凭据”)Firebase Auth ReactJS - Cannot read properties of undefined (reading 'credential') Firebase Auth ReactJS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM