Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

putFile header X-OC-MTime header must be an integer #1180

Open
devdynam0507 opened this issue Nov 18, 2022 · 1 comment
Open

putFile header X-OC-MTime header must be an integer #1180

devdynam0507 opened this issue Nov 18, 2022 · 1 comment

Comments

@devdynam0507
Copy link

devdynam0507 commented Nov 18, 2022

I ran the putFile function, but it seems that the wrong value is entered in X-OC-MTime.
so i changed return value info.mtime to info.mtimeMs in helperFunctions#_getMTime
it's works

/**
 * gets the MTime of a file/folder
 * @param   {string}    path    path of the file/folder
 * @returns {Date}              MTime
 */
helpers.prototype._getMTime = function(path) {
    var info = fs.statSync(path);
    return info.mtimeMs;
};

error logs

node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^
X-OC-MTime header must be an integer (unix timestamp).
(Use `node --trace-uncaught ...` to show where the exception was thrown)
@alinamagasumova
Copy link

alinamagasumova commented Feb 24, 2024

wht's with last modified date then? i did the same, but now i have an issue that my file was last modified in 11.05.2446.
did you do something with it?
image
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants