summaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-13 13:00:45 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-13 13:00:45 +0000
commit249c2da5ee39e8f4982184fa322e3d7234c2120c (patch)
tree89b91761122b7084caf3d49c45c5295ad2120191 /src/routes
parent64d5f37d9e28363f27b49b9a5b421a19792d0165 (diff)
Upload a file with a default name
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/model.rs b/src/routes/model.rs
index 34e896d..bc66d25 100644
--- a/src/routes/model.rs
+++ b/src/routes/model.rs
@@ -83,7 +83,7 @@ async fn upload_model_file(
let allowed_extensions = vec!["stl", "obj", "png", "jpg", "jpeg", "gif", "webp", "blend"];
- match upload(multipart, allowed_extensions).await {
+ match upload(multipart, allowed_extensions, None).await {
Ok(saved_file) => {
let model_file = ModelUpload::create(ModelUpload::new(saved_file, model_id)).await?;