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

Can't use S3 w/multipart without having to define "getTemporarySecurityCredentials" #4665

Closed
2 tasks done
sveinare opened this issue Sep 6, 2023 · 2 comments
Closed
2 tasks done
Labels

Comments

@sveinare
Copy link

sveinare commented Sep 6, 2023

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

Expected behavior

I expected that the file would be uploaded.

BTW: The example drag.html works fine - this is non-multipart.

Actual behavior

I get an error that: "getTemporarySecurityCredentials is not a function" (in an alert)

image

Se also my initial community-post: https://community.transloadit.com/t/s3-and-optional-use-of-sts-temporary-credentials/16773

@sveinare sveinare added the Bug label Sep 6, 2023
@aduh95
Copy link
Member

aduh95 commented Sep 6, 2023

Hey, in this example you have the following condition:

// If WebCrypto is available, let's do signing from the client.
return uppy.getPlugin('myAWSPlugin').createSignedURL(file, options)
}

Calling createSignedURL only works if you are using STS – because the client cannot create a signed URL without it. If you just want to use the server to sign stuff, you need to remove both getTemporarySecurityCredentials (or set it to false, it's the same), and remove that condition.

@sveinare
Copy link
Author

sveinare commented Sep 6, 2023

My bad. That worked, and I am therefore closing this issue.

@sveinare sveinare closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants