Skip to content
pubscout

aws_s3_upload_lite

0.1.7, released 11 months ago by workforceanalytics.co.za

Upload files and byte data directly to AWS S3 buckets with progress tracking.

$ flutter pub add aws_s3_upload_lite
Source repository

What it does

Provides simple APIs to upload File objects or byte data to Amazon S3 buckets. Supports custom metadata, headers, ACL permissions, session tokens, and upload progress callbacks, returning the full S3 URL upon success.

AI-written summary of version 0.1.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to upload user-generated files or data directly from a Flutter app to Amazon S3.
  • You require upload progress monitoring and custom metadata or headers for S3 objects.

Skip it when

  • You need a comprehensive AWS SDK for Flutter covering multiple services beyond S3 uploads.
  • You want to store credentials directly on the client for sensitive production environments without secure handling.

Strengths

  • Simple and straightforward API for S3 uploads.
  • Supports progress tracking callbacks and session tokens for temporary credentials.
  • Returns the full S3 URL on successful uploads.

Weaknesses

  • Limited to uploading files and byte data to S3 rather than a full storage management suite.
  • Exposing access and secret keys on the client side requires careful security considerations.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Requires valid AWS S3 bucket credentials, region, and appropriate bucket permissions or CORS/ACL configurations.

String fileUrl = await AwsS3.uploadFile(
  accessKey: 'your-access-key',
  secretKey: 'your-secret-key',
  bucket: 'your-bucket',
  file: File('path/to/your/file.jpg'),
  region: 'us-east-1',
  destDir: 'uploads',
  filename: 'photo.jpg',
);

Alternatives

Packages that do the same job and could replace aws_s3_upload_lite.

Works with

Packages commonly used together with aws_s3_upload_lite: ones it builds on, ones built on it, and its own family.