搜索分类、插件与代码仓

插件详情v0.9.1

amazon_s3_cognito

此插件允许用户上传和删除 Amazon S3 Cognito 的图像。用户还可以使用该插件将多张图像上传到 S3。

AndroidiOS
近 30 天下载
151
喜欢数
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

所属分类

源码仓库

使用此插件的项目

暂无相关数据。