Browse Source
Can't return inside multipart closure
pull/343/head
Daniel García
6 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
1 deletions
-
src/api/core/ciphers.rs
|
|
@ -690,7 +690,7 @@ fn post_attachment(uuid: String, data: Data, content_type: &ContentType, headers |
|
|
|
|
|
|
|
let mut attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size); |
|
|
|
attachment.key = attachment_key.clone(); |
|
|
|
attachment.save(&conn)?; |
|
|
|
attachment.save(&conn).expect("Error saving attachment"); |
|
|
|
} |
|
|
|
_ => error!("Invalid multipart name"), |
|
|
|
} |
|
|
|