【问题标题】:AWS Amplify Storage.put() Cannot read properties of undefined (reading 'byteLength')AWS Amplify Storage.put() 无法读取未定义的属性(读取 \'byteLength\')
【发布时间】:2023-02-01 22:25:15
【问题描述】:

我创建了一个放大反应本机应用程序并手动附加了一个 S3 存储桶,当我调用函数“Storage.put()”时它显示了这个错误。

这是我的代码。

授权配置

【问题讨论】:

    标签: javascript reactjs react-native amazon-s3 aws-amplify


    【解决方案1】:

    Storage.put()添加await

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

    【讨论】:

    • 还是行不通。
    猜你喜欢
    • 2020-08-16
    • 2022-01-26
    • 1970-01-01
    • 2021-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-11
    相关资源
    最近更新 更多