Search packages, repositories and app categories

Package detailsv0.9.1

amazon_s3_cognito

This plugin allows users to upload and delete image for amazon s3 cognito.Users can also upload multiple images to s3 using the plugin.

AndroidiOS
30-day downloads
798
Likes
30
Pub points
150

Install package

flutter pub add amazon_s3_cognito

Package Overview

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

The amazon_s3_cognito package enables Flutter applications to securely upload and delete images to Amazon S3 using AWS Cognito for authentication. It supports multiple image uploads, streamlining file management within apps that require user-specific media storage. Built for Android and iOS, the plugin integrates seamlessly with AWS services, ensuring secure access control through Cognito identity pools. Developers can easily manage media assets directly from their app without handling low-level AWS SDK calls.

Use cases

  • User profile image uploads
  • Multi-image gallery storage
  • Secure media handling in mobile apps
  • Cognito-authenticated file operations
  • Cloud-based document storage

Key features

  • AWS Cognito integration
  • Support for multiple image uploads
  • Image deletion functionality
  • Android and iOS compatibility
  • Secure S3 access via credentials

Suitable for

  • Mobile apps requiring user media storage
  • Apps using AWS Cognito for auth
  • Developers integrating S3 with Flutter
  • Projects needing secure cloud file handling
  • Authentication-driven file operations

Considerations

  • Requires AWS Cognito setup
  • Needs proper IAM permissions
  • Dependent on AWS network connectivity
  • May require additional error handling
  • Limited to S3 file operations only

Original README

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

amazon_s3_cognito

Amazon S3 plugin for Flutter

Unofficial Amazon S3 plugin written in Dart for Flutter.

Only supports Amazon SDK up to 2.20(excluded), since starting with 2.20, the SDK dropped the deprecated "AWSS3TransferManager" which is still in use within this plugin.

https://github.com/aws-amplify/aws-sdk-ios/releases/tag/2.20.0

The plugin is extension if flutter-amazon-s3 plugin which can be found here https://pub.dev/packages/flutter_amazon_s3. This plugin adds image list and delete functionality and also it allows user to upload image when region and sub-region are different.

Plugin in maintained by fäm properties<no-reply@famproperties.com>.

Usage

To use this plugin, add amazon_s3_cognito as a dependency in your pubspec.yaml file.

dependencies:
The package is android-x compatible
  amazon_s3_cognito: '^0.2.0' 
Example
import 'package:amazon_s3_cognito/amazon_s3_cognito.dart';
import 'package:amazon_s3_cognito/aws_region.dart';

//this method only supports image upload. 
String uploadedImageUrl = await AmazonS3Cognito.uploadImage(
          _image.path, BUCKET_NAME, IDENTITY_POOL_ID);
          

//Use the below code to specify the region and sub region for image upload
//Also this method allows to upload all file type including images and pdf etc.
//We recommend to use this method always. 
String uploadedImageUrl = await AmazonS3Cognito.upload(
            _image.path,
            BUCKET_NAME,
            IDENTITY_POOL_ID,
            IMAGE_NAME,
            AwsRegion.US_EAST_1,
            AwsRegion.AP_SOUTHEAST_1)
            
//use below code to delete an image
 String result = AmazonS3Cognito.delete(
            BUCKET_NAME,
            IDENTITY_POOL_ID,
            IMAGE_NAME,
            AwsRegion.US_EAST_1,
            AwsRegion.AP_SOUTHEAST_1)
            
//use below code to list files
 List<String> files = await AmazonS3Cognito.listFiles(
            BUCKET_NAME,
            IDENTITY_POOL_ID,
            PREFIX,
            AwsRegion.US_EAST_1,
            AwsRegion.AP_SOUTHEAST_1)
        

Installation

Android

No configuration required - the plugin should work out of the box.

iOS

No configuration required - the plugin should work out of the box.

Authors
the plugin is created and maintained by fäm properties. 
Android version written by Prachi Shrivastava
IOS version written by Prachi Shrivastava

Categories

Source repository

Projects using this package

No data available yet.