简体   繁体   中英

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.

在此处输入图像描述

This is my code.

在此处输入图像描述

Auth Configuration

在此处输入图像描述

Add await for Storage.put() :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM