Refactor FileAPI implementation

This commit is contained in:
Zhen Zhang 2016-07-12 14:13:57 +08:00
parent 9b01a4cc97
commit aea99e081b
8 changed files with 224 additions and 178 deletions

View file

@ -54,7 +54,8 @@ impl File {
let global = GlobalRef::Window(window);
File::new(global, BlobImpl::new_from_file(selected.id), name, Some(selected.modified as i64), "")
File::new(global, BlobImpl::new_from_file(selected.id, selected.filename, selected.size),
name, Some(selected.modified as i64), "")
}
// https://w3c.github.io/FileAPI/#file-constructor