1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/forms/multipart-s3
2022-02-25 21:25:21 +00:00
..
src fmt 2022-02-18 02:44:02 +00:00
.env.example Restructure folders (#411) 2021-02-26 00:57:58 +00:00
.gitignore Restructure folders (#411) 2021-02-26 00:57:58 +00:00
Cargo.toml update more stable crates 2022-02-25 21:25:21 +00:00
README.md remove broken link 2022-02-18 02:23:48 +00:00

multipart+s3

Upload a file in multipart form to aws s3(https://github.com/rusoto/rusoto)
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=you_key
  3. edit .env AWS_SECRET_ACCESS_KEY=you_key
  4. edit .env AWS_S3_BUCKET_NAME=you_key

Running Server

cd forms/multipart-s3
cargo run (or ``cargo watch -x run``)

http://localhost:3000

Using Other Regions