MCPcopy Create free account
hub / github.com/actix/examples / index

Function index

forms/multipart/src/main.rs:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32async fn index() -> HttpResponse {
33 let html = r#"<html>
34 <head><title>Upload Test</title></head>
35 <body>
36 <form target="/" method="post" enctype="multipart/form-data">
37 <input type="file" multiple name="file"/>
38 <button type="submit">Submit</button>
39 </form>
40 </body>
41 </html>"#;
42
43 HttpResponse::Ok().body(html)
44}
45
46#[actix_web::main]
47async fn main() -> std::io::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected