Search packages, repositories and app categories

Package detailsv1.5.0

aws_s3_upload

A simple, convenient package for uploading to S3.

AndroidiOSmacOSWindowsLinux
30-day downloads
1.5K
Likes
31
Pub points
110

Install package

flutter pub add aws_s3_upload

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A straightforward Flutter package designed to simplify uploading files to Amazon S3. It provides an easy-to-use interface for handling file uploads with minimal boilerplate, supporting multiple platforms including Android, iOS, macOS, Windows, and Linux. The package abstracts the complexity of AWS authentication and HTTP requests, making it ideal for developers integrating cloud storage into their apps. It is particularly useful for applications requiring secure and reliable file storage in the cloud.

Use cases

  • Uploading user-generated content to S3
  • Integrating cloud storage in mobile apps
  • Storing app assets securely
  • Syncing files from devices to AWS
  • Enabling backup functionality

Key features

  • Simple upload API
  • Cross-platform support
  • AWS S3 integration
  • Secure file transfer
  • Minimal configuration required

Suitable for

  • Flutter developers building cloud-enabled apps
  • Apps needing file storage on AWS
  • Projects requiring reliable file uploads
  • Developers seeking easy S3 integration
  • Mobile-first applications with backend storage

Considerations

  • Requires AWS credentials setup
  • Limited to S3-specific operations
  • No built-in file management features
  • Depends on internet connectivity
  • Authentication must be handled externally

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

aws_s3_upload

A simple, convenient package for uploading to S3.

Heavily inspired by this stackoverflow answer

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",
  metadata: {"test": "test"} // optional
);

Warning

Before using this package, consider if it's acceptable to include AWS keys in your final app. Doing so might be okay for internal or trusted apps, but think twice before including keys in an app published on the app store.

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.

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.