SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.07k stars 650 forks source link

File Upload on AWS S3 #1568

Open jaykukadiya99 opened 9 months ago

jaykukadiya99 commented 9 months ago

Hello,

I am creating an admin panel using adminJs. I want to upload files on my S3 bucket. for that, I am using awsProvider.

I am getting an error Could not load credentials from any providers.

image

Here is the screenshot of the code.

image

FYI, file upload using LocalProvide is working fine.

Thanks in advance!!

j-000 commented 9 months ago

The awsProvider docs say that the auth can happen in different ways. Have you tried adding the credentials to your AWS account as environment variables?

% export AWS_ACCESS_KEY_ID="anaccesskey" % export AWS_SECRET_ACCESS_KEY="asecretkey" % export AWS_REGION="us-west-2"

https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration

harshmalvi commented 2 months ago

@jaykukadiya99 Hey found any solution?

I'm getting error in file upload using aws

An error was encountered in a non-retryable streaming request. AccessDenied: Access Denied

jaykukadiya99 commented 2 months ago

@harshmalvi

Yes, I solved it. Check my stackoverflow answer

https://stackoverflow.com/a/77335075/10273524

harshmalvi commented 2 months ago

@harshmalvi

Yes, I solved it. Check my stackoverflow answer

https://stackoverflow.com/a/77335075/10273524

Thank you @jaykukadiya99