パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.9.1

amazon_s3_cognito

このプラグインを使用すると、ユーザーはAmazon S3 Cognito用の画像をアップロードおよび削除できます。また、このプラグインを使用して複数の画像をS3にアップロードすることも可能です。

AndroidiOS
30日間ダウンロード
798
いいね数
30
Pub ポイント
150

パッケージをインストール

flutter pub add amazon_s3_cognito

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

amazon_s3_cognito パッケージは、AWS Cognito を使用した認証により、Flutter アプリケーションが Amazon S3 に画像を安全にアップロードおよび削除できるようにします。複数の画像アップロードをサポートし、ユーザー固有のメディアストレージを必要とするアプリケーションにおけるファイル管理を簡素化します。Android および iOS 向けに構築されたこのプラグインは、AWS サービスとシームレスに統合され、Cognito ID プールを通じてセキュアなアクセス制御を保証します。開発者は、低レベルの AWS SDK コールを扱う必要なく、アプリから直接メディア資産を管理できます。

用途

  • ユーザーのプロフィール画像のアップロード
  • マルチ画像ギャラリーストレージ
  • モバイルアプリにおけるセキュアなメディア処理
  • Cognito認証ファイル操作
  • クラウドベースのドキュメントストレージ

主な機能

  • AWS Cognito インテグレーション
  • 複数の画像アップロードをサポート
  • 画像削除機能
  • Android および iOS との互換性
  • 資格情報によるS3アクセスのセキュリティ

適している対象

  • ユーザーのメディアストレージを必要とするモバイルアプリ
  • AWS Cognito を認証に使用するアプリ
  • FlutterとS3を統合する開発者
  • 安全なクラウドファイル処理を必要とするプロジェクト
  • 認証駆動型のファイル操作

注意事項

  • AWS Cognito の設定が必要です
  • 適切な IAM 権限が必要です
  • AWSネットワーク接続に依存
  • 追加のエラー処理が必要になる場合があります
  • S3 ファイル操作のみに制限

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。