1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 12:58:54 -05:00

Fix lastModified for DomFile in FormData (#6830)

This commit is contained in:
crowlKats 2020-07-22 14:04:35 +02:00 committed by GitHub
parent f34a441a7d
commit 9d13b539b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@
if (value instanceof domFile.DomFile) { if (value instanceof domFile.DomFile) {
return new domFile.DomFile([value], filename || value.name, { return new domFile.DomFile([value], filename || value.name, {
type: value.type, type: value.type,
lastModified: value.lastModified,
}); });
} else if (value instanceof blob.Blob) { } else if (value instanceof blob.Blob) {
return new domFile.DomFile([value], filename || "blob", { return new domFile.DomFile([value], filename || "blob", {