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:
parent
f34a441a7d
commit
9d13b539b5
1 changed files with 1 additions and 0 deletions
|
@ -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", {
|
||||||
|
|
Loading…
Reference in a new issue