1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-01 16:49:09 +00:00
This commit is contained in:
Daniel García 2024-01-13 02:19:41 +01:00
commit 9247481dae
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -987,7 +987,7 @@ async fn post_attachment_v2(
}
let data: AttachmentRequestData = data.into_inner().data;
if !data.FileSize < 0 {
if data.FileSize < 0 {
err!("Attachment size can't be negative")
}
let attachment_id = crypto::generate_attachment_id();