1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/forms/multipart-s3
2022-08-01 01:17:59 +01:00
..
src migrate s3 example to aws-sdk-s3 2022-08-01 01:17:59 +01:00
.env.example migrate s3 example to aws-sdk-s3 2022-08-01 01:17:59 +01:00
.gitignore Restructure folders (#411) 2021-02-26 00:57:58 +00:00
Cargo.toml migrate s3 example to aws-sdk-s3 2022-08-01 01:17:59 +01:00
README.md migrate s3 example to aws-sdk-s3 2022-08-01 01:17:59 +01:00

Multipart + AWS S3

Upload a file in multipart form to AWS S3 using AWS S3 SDK.
Receive multiple data in multipart form in JSON format and receive it as a struct.

Usage

cd forms/multipart-s3
  1. copy .env.example .env
  2. edit .env AWS_ACCESS_KEY_ID=your_key
  3. edit .env AWS_SECRET_ACCESS_KEY=your_key
  4. edit .env AWS_S3_BUCKET_NAME=your_chosen_region
cargo run

http://localhost:8080