1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/multipart-s3
2020-09-12 16:49:45 +01:00
..
src v3 examples (#364) 2020-09-12 16:49:45 +01:00
.env.example add AWS_REGION env variable and add _ prefix (#270) 2020-03-20 09:21:58 +09:00
.gitignore rename 2020-02-07 09:34:56 +09:00
Cargo.toml v3 examples (#364) 2020-09-12 16:49:45 +01:00
README.md rename 2020-02-07 09:34:56 +09: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 examples/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 examples/multipart+s3
cargo run (or ``cargo watch -x run``)

http://localhost:3000

using other regions

https://www.rusoto.org/regions.html
https://docs.rs/rusoto_core/0.42.0/rusoto_core/enum.Region.html