搜索分类、插件与代码仓

插件详情v0.1.1+hotfix.5

aws_s3

此包用于将任何文件上传到 AWS S3,并显示上传进度百分比。

近 30 天下载
7
喜欢数
32
Pub 分数
30

安装插件

flutter pub add aws_s3

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

aws_s3 包使 Flutter 应用程序能够实时跟踪上传进度,将文件上传到 AWS S3。它通过提供一个简单的 API 来处理文件上传,包括支持监控上传百分比,简化了与 AWS S3 的集成。该包专为使用云存储的开发者设计,可轻松安全地将图片、文档和视频等资产存储在 AWS S3 中。对于需要可靠文件持久化和可扩展存储解决方案的应用程序,该包尤其有用。

适合场景

  • 将用户生成的内容上传到 AWS S3
  • 实时跟踪上传进度
  • 存储应用资源,如图片和视频
  • 与基于 AWS 的后端集成
  • 管理云原生应用中的文件存储

主要特点

  • 实时上传百分比跟踪
  • 文件上传的简单 API
  • AWS S3 集成
  • 支持多个文件上传
  • 安全的云存储访问

适合对象

  • 需要云文件存储的Flutter应用
  • 使用 AWS S3 作为后端的开发人员
  • 需要上传进度反馈的应用
  • 用户上传媒体的项目
  • 以云为先的移动应用开发

使用建议

  • 需要配置 AWS 凭据
  • 仅限 AWS S3 服务
  • 无内置文件管理功能
  • 依赖互联网连接
  • 可能需要特定于平台的设置

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

aws_s3

This plugin developed to make it easy to upload any file(s) to AWS S3 without writing Android, and IOS code separately using method channel.

DISCLAIMER: This is not an AWS officially released plugin but this plugin uses AWS official Android native and IOS native AWS plugins (So nothing to be worried). Check the package implementation on github: https://github.com/blasanka/aws_s3

Contributors are highly welcome.

To use this package, you have to create a instance of AwsS3 with parameters like below code snippet:

AwsS3 awsS3 = AwsS3(
  awsFolderPath: "your aws folder path",
  file: "file is of type File",
  fileNameWithExt: "file name",
  poolId: "your aws pool id",
  region: "your region using enum Regions",
  bucketName: "your bucket name to upload");

AwsS3 class, parameters:

  final File file;
  final String fileNameWithExt;
  final String awsFolderPath;
  final String poolId;
  final Regions region;
  final String bucketName;

  AwsS3({
    @required this.file,
    @required this.fileNameWithExt,
    @required this.awsFolderPath,
    @required this.poolId,
    this.region = Regions.US_WEST_2,
    @required this.bucketName,
  });

All the available regions from official Amazon AWS S3 android are supported in this Flutter plugin:

/// Enumeration of region names
enum Regions {
  GovCloud,
  US_GOV_EAST_1,
  US_EAST_1,
  US_EAST_2,
  US_WEST_1,
  US_WEST_2, ///Default: The default region of AWS Android SDK
  EU_WEST_1,
  EU_WEST_2,
  EU_WEST_3,
  EU_CENTRAL_1,
  EU_NORTH_1,
  AP_EAST_1,
  AP_SOUTH_1,
  AP_SOUTHEAST_1,
  AP_SOUTHEAST_2,
  AP_NORTHEAST_1,
  AP_NORTHEAST_2,
  SA_EAST_1,
  CA_CENTRAL_1,
  CN_NORTH_1,
  CN_NORTHWEST_1,
  ME_SOUTH_1
}

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。