mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Provide MIME type data for File in formdata::get_file
This commit is contained in:
parent
d77d752990
commit
b5722e50bb
4 changed files with 3 additions and 6 deletions
|
@ -153,7 +153,7 @@ impl FormData {
|
|||
|
||||
let bytes = blob.get_bytes().unwrap_or(vec![]);
|
||||
|
||||
File::new(&self.global(), BlobImpl::new_from_bytes(bytes), name, None, "")
|
||||
File::new(&self.global(), BlobImpl::new_from_bytes(bytes), name, None, &blob.type_string())
|
||||
}
|
||||
|
||||
pub fn datums(&self) -> Vec<FormDatum> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue