-
Notifications
You must be signed in to change notification settings - Fork 114
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
Non cognito related v4 signature #1
Comments
@ctippur have you checked your AWS credentials? |
Also, I tried using the values from signed url directly (instead of policy)
|
The above code is giving a different error
Yes. I am using my credentials. I have access to my bucket. I can copy objects to the bucket via cli. |
also I tried to print policy.credentials I get |
Pls print all presigned_policy fields |
Pls let me know if I have missed anything |
|
I just printed accessKeyId. It does print the right one. Not sure how null is creeping in. |
Check |
That was a good find. I fixed that. I still get the same error. Can you pls give me a second look at
If I get this right, the filename is taken from the basename. For example if the path is a/b/d/e.mp4, Where in the code do we specify the complete file location :/ that it picks the file from? |
I don't see this error in this thread, pls add details where do you catch it. |
It has been referenced here. it is coming in the exception code
|
Try to remove Do you get an error |
Did that. Same error. |
Do you get an error ***** Exception in sending file ***** Invalid argument(s) ? |
Doe sit mean I need the token? |
Pls try to use presigned url from response |
I dont think I got that. can you please explain? You mean here? instead of bucket, use the url?
BTW .. Thanks for handholding. |
pls split this into 2 different try / catch to specify the error place
|
Just tried that. Apologies for the delay.
|
@furaiev - any other thing you can think of? Is there a way to print the complete res object?
|
Pls take a look at this working code - https://github.com/conghua2411/FlutterDemoEverything/blob/e07cd5e1c9f751395a050a9a37ed09e821ee607b/lib/aws_cognito_dev_upload_s3/aws_cognito_dev_upload_s3.dart I believe you need |
I will take a look. Thx. as an alternative, I tried using dio
I dont see an exception but nothing seem to happen :/. There are no errors |
Hi @ctippur, |
Hello,
I need some help with v4 signature.
I am generating pre signed url using generate_presigned_post call - https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-presigned-urls.html
This comes with a output like this:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.generate_presigned_post
Here is my dart code
I get a error
Appreciate a response.
Thanks,
Shekar
The text was updated successfully, but these errors were encountered: