mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibWeb: Set the MIME type when creating an <input> element's File list
We were passing the MIME type to the underlying Blob, but the factory for creating a File only checks an explicit options structure.
This commit is contained in:
parent
0cc8698a62
commit
f55471333b
3 changed files with 17 additions and 13 deletions
|
@ -13,13 +13,13 @@
|
|||
const file = input.files.item(i);
|
||||
const text = await file.text();
|
||||
|
||||
println(`${file.name} (index iteration): ${text}`);
|
||||
println(`${file.name} (index iteration): ${file.type}: ${text}`);
|
||||
}
|
||||
|
||||
for (let file of input.files) {
|
||||
const text = await file.text();
|
||||
|
||||
println(`${file.name} (for..of iteration): ${text}`);
|
||||
println(`${file.name} (for..of iteration): ${file.type}: ${text}`);
|
||||
}
|
||||
|
||||
resolve();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue