1
0
mirror of https://github.com/actix/examples synced 2025-03-21 02:55:17 +01:00
2022-08-01 01:17:59 +01:00

22 lines
456 B
Markdown

# Multipart + AWS S3
Upload a file in multipart form to AWS S3 using [AWS S3 SDK](https://crates.io/crates/aws-sdk-s3).
Receive multiple data in multipart form in JSON format and receive it as a struct.
# Usage
```sh
cd forms/multipart-s3
```
1. copy .env.example .env
1. edit .env AWS_ACCESS_KEY_ID=your_key
1. edit .env AWS_SECRET_ACCESS_KEY=your_key
1. edit .env AWS_S3_BUCKET_NAME=your_chosen_region
```sh
cargo run
```
<http://localhost:8080>