분류, 패키지 및 저장소 검색

패키지 상세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 패키지는 AWS Cognito를 사용한 인증을 통해 Flutter 애플리케이션에서 Amazon S3에 이미지를 안전하게 업로드하고 삭제할 수 있도록 합니다. 여러 이미지 업로드를 지원하며, 사용자별 미디어 저장이 필요한 앱의 파일 관리를 간소화합니다. Android 및 iOS용으로 개발된 이 플러그인은 AWS 서비스와 원활하게 통합되어 Cognito 식별 풀을 통해 보안 접근 제어를 보장합니다. 개발자는 낮은 수준의 AWS SDK 호출을 다루지 않고도 앱 내에서 직접 미디어 자산을 관리할 수 있습니다.

사용 사례

  • 사용자 프로필 이미지 업로드
  • 다중 이미지 갤러리 저장소
  • 모바일 앱에서의 안전한 미디어 처리
  • Cognito 인증 파일 작업
  • 클라우드 기반 문서 저장

주요 기능

  • AWS Cognito 통합
  • 다중 이미지 업로드 지원
  • 이미지 삭제 기능
  • 안드로이드 및 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

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.