Skip to content

A simple, convenient package for uploading to S3 in Flutter

License

Notifications You must be signed in to change notification settings

e9labs/aws_s3_upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws_s3_upload

A simple, convenient package for uploading to S3.

Heavily inspired by this stackoverflow answer

Motivation / Disclaimer

There already exists a number of Flutter plugins for interacting with S3, some of which are more actively maintained. This small library was built because the few I tried either failed to work out of the box, or required the use of a Pool ID and AWS Cognito, which my project doesn't use. YMMV.

Added ACL configuration so you can choose the permissions you want when uploading a file.

Getting Started

Having created credentials on AWS, upload a file like so:

AwsS3.uploadFile(
  accessKey: "AKxxxxxxxxxxxxx",
  secretKey: "xxxxxxxxxxxxxxxxxxxxxxxxxx",
  file: File("path_to_file"),
  bucket: "bucket_name",
  region: "us-east-2"
);

About

A simple, convenient package for uploading to S3 in Flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%