Made websocket automatically finish when all bytes have been uploaded

This commit is contained in:
G2-Games 2025-03-22 16:14:55 -05:00
parent b76ebd339c
commit a282bc588b

View file

@ -301,7 +301,7 @@ pub async fn websocket_upload(
let message = message.unwrap().into_data(); let message = message.unwrap().into_data();
offset += message.len() as u64; offset += message.len() as u64;
if (offset > info.1.size) | (offset > max_filesize) { if (offset >= info.1.size) | (offset > max_filesize) {
break break
} }