搜索插件、代码仓与 APP 分类

插件详情v1.5.0

aws_s3_upload

一个简单便捷的 S3 上传包。

AndroidiOSmacOSWindowsLinux
近 30 天下载
1510
喜欢数
31
Pub 分数
110

安装插件

flutter pub add aws_s3_upload

插件介绍

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

一个简单的 Flutter 包,旨在简化将文件上传到 Amazon S3 的过程。它提供了一个易于使用的接口,用于处理文件上传,代码量极少,支持 Android、iOS、macOS、Windows 和 Linux 等多个平台。该包抽象了 AWS 认证和 HTTP 请求的复杂性,非常适合将云存储集成到应用程序中的开发者。对于需要在云端实现安全可靠文件存储的应用程序尤其有用。

适合场景

  • 将用户生成的内容上传到 S3
  • 在移动应用中集成云存储
  • 安全存储应用资源
  • 从设备同步文件到 AWS
  • 启用备份功能

主要特点

  • 简单上传 API
  • 跨平台支持
  • AWS S3 集成
  • 安全文件传输
  • 最小配置要求

适合对象

  • Flutter 开发人员构建云功能应用
  • 需要在AWS上进行文件存储的应用程序
  • 需要可靠文件上传的项目
  • 寻求简单 S3 集成的开发者
  • 以移动设备为先的应用程序,带有后端存储

使用建议

  • 需要设置 AWS 凭据
  • 仅限 S3 特定操作
  • 无内置文件管理功能
  • 依赖互联网连接
  • 身份验证必须由外部处理

原始 README

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

aws_s3_upload

A simple, convenient package for uploading to S3.

Heavily inspired by this stackoverflow answer

Getting Started

Having created credentials on AWS, upload a file like so:

AwsS3.uploadFile(
  accessKey: "AKxxxxxxxxxxxxx",
  secretKey: "xxxxxxxxxxxxxxxxxxxxxxxxxx",
  file: File("path_to_file"),
  bucket: "bucket_name",
  region: "us-east-2",
  metadata: {"test": "test"} // optional
);

Warning

Before using this package, consider if it's acceptable to include AWS keys in your final app. Doing so might be okay for internal or trusted apps, but think twice before including keys in an app published on the app store.

Motivation / Disclaimer

There already exists a number of Flutter plugins for interacting with S3, some of which are more actively maintained. This small library was built because the few I tried either failed to work out of the box, or required the use of a Pool ID and AWS Cognito, which my project doesn't use. YMMV.

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目

暂无相关数据。