Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 S3 存储策略时上传文件失败 #959

Closed
junbaor opened this issue Jul 29, 2021 · 1 comment
Closed

使用 S3 存储策略时上传文件失败 #959

junbaor opened this issue Jul 29, 2021 · 1 comment

Comments

@junbaor
Copy link

junbaor commented Jul 29, 2021

Describe the bug
使用 S3 存储策略时上传文件失败。

To Reproduce
配置好 S3 存储策略后上传文件。

Expected behavior
期望正常上传成功。

Screenshots
image
image

Desktop (please complete the following information):

  • OS: macOS 11.5 20G71 x86_64
  • Browser: Chrome
  • Version: 92.0.4515.107 (正式版本) (x86_64)

Additional context

api/v3/file/upload/credential 接口正常响应, 下一步往 aws 直传时返回 403,响应体如下

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>AccessDenied</Code>
    <Message>Invalid according to Policy: Extra input fields: name</Message>
    <RequestId>WPTSRFXZFB2XSE04</RequestId>
    <HostId>tqglH2mxgQAvzemyOQ4nD+qQkOOwEvytfI97j/eG1l2RXNESULN2bO9FDmkuBef/Avm9+n/wlDs=</HostId>
</Error>

从报错信息看,好像是因为直传 aws 的请求参数中多携带了 name 参数。

@junbaor
Copy link
Author

junbaor commented Jul 30, 2021

使用 master 分支最新代码编译测试了一下,可以正常上传。
修复的提交:65c4367

问题关联:#824

@HFO4 HFO4 closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants