putFile header X-OC-MTime header must be an integer
Opened this issue · 1 comments
devdynam0507 commented
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 commented