We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b17bd commit 248c3f4Copy full SHA for 248c3f4
api/internal/init.js
@@ -135,9 +135,9 @@ if ((globalThis.window) === globalThis) {
135
136
for (const handle of handles) {
137
if (typeof handle.getFile === 'function') {
138
- const file = handle.getFile()
+ const file = await handle.getFile()
139
const buffer = new Uint8Array(await file.arrayBuffer())
140
- files.push(new File(buffer, file.name, {
+ files.push(new File([buffer], file.name, {
141
lastModified: file.lastModified,
142
type: file.type
143
}))
0 commit comments