1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27: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:
Timothy Flynn 2024-03-13 16:05:32 -04:00 committed by Andreas Kling
parent 0cc8698a62
commit f55471333b
3 changed files with 17 additions and 13 deletions

View file

@ -1,12 +1,12 @@
Select file...file1 Select files...4 files selected. input1:
file1 (index iteration): Contents for file1
file1 (for..of iteration): Contents for file1
file1 (index iteration): text/plain: Contents for file1
file1 (for..of iteration): text/plain: Contents for file1
input2:
file1 (index iteration): Contents for file1
file2 (index iteration): Contents for file2
file3 (index iteration): Contents for file3
file4 (index iteration): Contents for file4
file1 (for..of iteration): Contents for file1
file2 (for..of iteration): Contents for file2
file3 (for..of iteration): Contents for file3
file4 (for..of iteration): Contents for file4
file1 (index iteration): text/plain: Contents for file1
file2 (index iteration): text/plain: Contents for file2
file3 (index iteration): text/plain: Contents for file3
file4 (index iteration): text/plain: Contents for file4
file1 (for..of iteration): text/plain: Contents for file1
file2 (for..of iteration): text/plain: Contents for file2
file3 (for..of iteration): text/plain: Contents for file3
file4 (for..of iteration): text/plain: Contents for file4