upload: fix template

This commit is contained in:
Vincent Breitmoser 2019-09-29 11:03:43 +02:00
parent 1f2c4047d6
commit 3355c7e5d4
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
2 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,6 @@
{{ text "Need more info? Check our <a target=\"_blank\" href=\"/about\">intro</a> and <a target=\"_blank\" href=\"/about/usage\">usage guide</a>!" }}
</p>
<script src="/assets/js/upload.js" async />
<script src="/assets/js/upload.js" async></script>
</div>
{{/layout}}

View File

@ -187,7 +187,7 @@ impl MyResponse {
#[get("/upload")]
pub fn upload() -> MyResponse {
MyResponse::ok("upload/upload", ())
MyResponse::ok_bare("upload/upload")
}
#[post("/upload/submit", format = "multipart/form-data", data = "<data>")]