MissingRequiredParameter:参数中缺少必需的键“ Bucket”

时间:2018-09-17 20:16:32

标签: amazon-web-services react-native

因此,我一直在关注Amazon文档,以在我正在使用的移动应用程序上设置后端。到目前为止,我已经开始进行身份验证,但是当我尝试设置

```import {storage} from 'aws-amplify'```

并运行示例方法

```    Storage.put('test.txt', 'Hello')
        let file = 'My upload text';
        let name = 'myFile.txt';
        const access = { level: "public" }; // note the access path
        Storage.put(name, file, access);```

我收到以下错误

```MissRequiredParameter: Missing required key 'Bucket' in params```

0 个答案:

没有答案