How to upload & fetch media files from AWS S3 in Flutter

Posted by Jennifer | Updated on

Want to upload & fetch media files from AWS S3 in Flutter. There’s a few ways to do this. One way is to sign your request with Signature V4 and POST your file to S3.

First, create a policy helper:

Then, sign your request with your policy helper and upload via http.MultipartRequest:

Please note that this method requires you to provide your Access Key and Secret Key. If you use a service like Cognito, it is recommended to get a temporary Access Key and Secret Key.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers