搜尋分類、套件與程式碼儲存庫

套件詳情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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。