搜尋套件、儲存庫與 APP 分類

套件詳情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 套件讓 Flutter 應用程式能夠使用 AWS Cognito 進行驗證,安全地將影像上傳和刪除至 Amazon S3。它支援多張影像上傳,簡化了需要使用者特定媒體儲存之應用中的檔案管理。此外,該套件專為 Android 與 iOS 所設計,能與 AWS 服務無縫整合,透過 Cognito 身份池確保安全的存取控制。開發者可輕鬆地直接從其應用程式中管理媒體資源,無需處理底層 AWS SDK 呼叫。

適用情境

  • 使用者個人檔案圖片上傳
  • 多圖庫儲存
  • 移動應用中的安全媒體處理
  • Cognito 認證檔案操作
  • 基於雲端的文件儲存

主要特色

  • AWS Cognito 結合
  • 支援多個圖像上傳
  • 影像刪除功能
  • Android 和 iOS 相容性
  • 透過憑證安全存取 S3

適合對象

  • 需要使用者媒體儲存的行動應用程式
  • 使用 AWS Cognito 進行驗證的應用程式
  • 將 S3 與 Flutter 集成的開發者
  • 需要安全雲檔案處理的專案
  • 基於身份驗證的檔案操作

使用建議

  • 需要 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

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。