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

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

@devdynam0507

Description

@devdynam0507

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions