1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +01:00

update readme.md

This commit is contained in:
cheolgyu 2020-02-06 10:51:22 +09:00
parent c6b75d5006
commit 71d1d05118
10 changed files with 26 additions and 12 deletions

View File

@ -19,7 +19,7 @@ members = [
"juniper", "juniper",
"middleware", "middleware",
"multipart", "multipart",
"multipart-s3", "multipart+s3",
"multipart-async-std", "multipart-async-std",
"openssl", "openssl",
# "protobuf", # "protobuf",

25
multipart+s3/README.md Normal file
View File

@ -0,0 +1,25 @@
# 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

View File

@ -1,11 +0,0 @@
use : https://github.com/rusoto/rusoto
https://www.rusoto.org/regions.html
https://docs.rs/rusoto_core/0.42.0/rusoto_core/enum.Region.html
1. set env AWS_ACCESS_KEY_ID
2. set env AWS_SECRET_ACCESS_KEY
3. set env AWS_S3_BUCKET_NAME
1. multipart/post aws-s3 upload
2. multipart/post post-data to struct