-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File mtime detected as invalid. #57
Comments
Appears when the file is saved it shows up as this when you run
|
Interesting. SIOFU gets the mtime information from file.lastModifiedDate. However, according to MDN, "lastModifiedDate" is deprecated. I wonder if replacing "lastModifiedDate" with "lastModified" would fix the problem? On the server side, all that happens is that the value gets passed to a new Date() constructor. Would you mind making this patch and see if it fixes your problem? Just go into client.js or client.min.js, search for "lastModifiedDate", and replace it with "lastModified". Thanks! |
Sure thing, I'll test that out later, and if it works I'll submit a PR. |
I'm having a strange issue where file uploads are being marked as having an invalid
mtime
when they are uploaded. This causes the files to use UNIX epoch as the timestamp (which is a bit undesirable).This is an example of the output of the
saved
event on the server.Here is the output of
event.file
during the progress step in the browser.Same output on the
complete
event in the browser.Interestingly, if you refresh the page before the file is done uploading the last modified time is correct.
The text was updated successfully, but these errors were encountered: