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

Uploading files to S3 using POST is not supported by AWS #1230

Open
okovalenko0 opened this issue Dec 25, 2024 · 2 comments
Open

Uploading files to S3 using POST is not supported by AWS #1230

okovalenko0 opened this issue Dec 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@okovalenko0
Copy link

okovalenko0 commented Dec 25, 2024

Describe the bug

When accessing Minio API "CreateMultipartUpload" with the HTTP post method, you get "Uploading files to S3 using POST is not supported by AWS, use PUT instead."

To Reproduce

Steps to reproduce the behavior:

  1. Create HttpRequestMessage with HttpMethod.Post, and URL - http://localhost:9000/documents/02ccb210-bba2-42e2-b8d7-49891759978f?uploads=
  2. Use Signer.SignAsync(request, null, request.Headers, DateTime.UtcNow, region, "s3", credentials); to sign the request.
  3. See error

Expected behavior

No error, request successfully signed and sent

Desktop:

  • OS: Windows
  • Version 22631.4602

Additional context

Package version is 5.0.0

@okovalenko0 okovalenko0 added the bug Something isn't working label Dec 25, 2024
Copy link
Contributor

Hi there and welcome to this repository!

A maintainer will be with you shortly, but first and foremost I would like to thank you for taking the time to report this issue. Quality is of the highest priority for us, and we would never release anything with known defects. We aim to do our best but unfortunately you are here because you encountered something we didn't expect. Lets see if we can figure out what went wrong and provide a remedy for it.

@okovalenko0
Copy link
Author

Official docs on Amazon say, that to initialize multipart upload you should use POST.
Also, in their examples they use ?uploads query parameter without value and =, what also cause an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants