Microsoft Edge File object missing lastModified
See original GitHub issueIn version 1.3.0 File objects are converted to FormData improperly in MS Edge.
Recently File checking has been changed to (in https://github.com/therealparmesh/object-to-formdata/commit/bd1b2c6a46da594929f546e7595664631477be37):
function isFile (value) {
- return value instanceof File
+ return isBlob(value) &&
+ typeof value.lastModified === 'number' &&
+ typeof value.name === 'string'
}
But in MS Edge File object doesn’t have lastModified property https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4155006/, instead it has lastModifiedDate of ‘object’ type.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Issue with date modified for NTUSER.DAT
Is Microsoft aware of an issue with various Windows 10 processes causing the date modified timestamp on the NTUSER.DAT file in unused profiles...
Read more >About Microsoft edge not starting missing file, C:/Program
NO idea why that started blocking MS edge from launching all the sudden but it did. Perhaps it was the cause for the...
Read more >Get File by modified date and extension then copy to location
FileInfo object to the Copy-Item cmdlet. I think the cmdlet is probably defaulting to using the .Name property and that is not enough ......
Read more >Azure File sync: Script to delete the files, which has been ...
We are doing something similar using PowerShell script to find the last modified date of each blob file (as in our case Life...
Read more >Converting a Blob object into a File, for Ms Edge
A File object is a specific kind of a Blob, it's just missing the two properties: lastModifiedDate and name(file name property).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree on that, it would not hurt. On the other hand, since FormData allow to use Blob objects, would be good to check if Edge support them too, so we would not need to worry about Edge or File objects anymore…
The fix is in. Thank you!