I'm trying to upload an audio file to s3. It seems like there is no straightforward approach. I found a few libraries.
- https://pub.dev/packages/amazon_cognito_identity_dart This one is incompatible with the latest dart version and there is no update information also. https://github.com/jonsaw/amazon-cognito-identity-dart/issues/27 So I couldn't use it.
- https://pub.dev/packages/flutter_aws_s3_client - Got deprecated
- https://pub.dev/packages/aws_s3
- https://pub.dev/packages/amazon_cognito_identity_dart
- https://pub.dev/packages/simple_s3-
3, 4, 5, and a few more libraries using AWS Cognito pool ID for authentication, But I found that to use the Cognito pool ID, our app user authentication should be done with this service. But In our app, authentication has already been created using the JWT token. So I couldn't AWS Cognito service. But still not sure completely as we can use Cognito pool ID with JWT token authentication.
Moreover, we can do it using the native code of iOS and Android and connect it using the flutter channel. But It seems too expensive in terms of time and complexity.
We have another way that we can send the media file to our backend server and from the server-side, we can upload it to the S3 bucket.
But I'm trying to figure out a way to do this from the frontend side itself.
Thanks for any suggestions.