2018-04-13 03:18:42 +02:00
|
|
|
# multipart
|
|
|
|
|
|
|
|
Multipart's `Getting Started` guide for Actix web
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
### server
|
|
|
|
|
|
|
|
```bash
|
2018-05-21 03:19:32 +02:00
|
|
|
cd examples/multipart
|
2018-04-13 03:18:42 +02:00
|
|
|
cargo run (or ``cargo watch -x run``)
|
|
|
|
# Started http server: 127.0.0.1:8080
|
|
|
|
```
|
|
|
|
|
2019-08-13 16:29:16 +02:00
|
|
|
### browser
|
2018-04-13 03:18:42 +02:00
|
|
|
|
2019-08-13 16:29:16 +02:00
|
|
|
- go to ``http://localhost:8080``
|
|
|
|
- upload file
|
|
|
|
- you should see the action reflected in server console
|
|
|
|
|
|
|
|
### client (optional)
|
2018-04-13 03:18:42 +02:00
|
|
|
|
2019-08-13 16:29:16 +02:00
|
|
|
- ``./client.sh``
|
|
|
|
- you must see in server console multipart fields
|
2018-04-13 03:18:42 +02:00
|
|
|
|