Flush file on finish

This commit is contained in:
G2-Games 2025-02-25 11:58:32 -06:00
parent f171051d54
commit 570ad5ce24

View file

@ -343,6 +343,8 @@ pub async fn websocket_upload(
.unwrap() .unwrap()
.insert(&mmid, constructed_file.clone()); .insert(&mmid, constructed_file.clone());
file.flush().await.unwrap();
stream.send(rocket_ws::Message::Text(json::serde_json::ser::to_string(&constructed_file).unwrap())).await?; stream.send(rocket_ws::Message::Text(json::serde_json::ser::to_string(&constructed_file).unwrap())).await?;
Ok(()) Ok(())