mirror of
https://github.com/actix/examples
synced 2024-11-24 06:43:00 +01:00
8186a8cfea
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru> Co-authored-by: Altug Sahin <altugsahin@gmail.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
610 B
610 B
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
- copy .env.example .env
- edit .env AWS_ACCESS_KEY_ID=you_key
- edit .env AWS_SECRET_ACCESS_KEY=you_key
- edit .env AWS_S3_BUCKET_NAME=you_key
Running Server
cd forms/multipart-s3
cargo run (or ``cargo watch -x run``)
using other regions
https://www.rusoto.org/regions.html
https://docs.rs/rusoto_core/0.42.0/rusoto_core/enum.Region.html