NC keeps original modified date on files bigger than 10MB

Hello!

We have a strange behavior in our NC installation. We’ve realized that any kind of uploaded file bigger than 10MB keeps its original modified date, what we understand isn’t a correct behavior. All files under 10MB, NC changes its modified date for the current date/time at time to upload, what we understand is the correct behavior.

Could anyone tell me why is this happening and how to fix it?

For example, its a big problem when using “File Retention” app. If uploaded files are bigger than 10MB (NC keeps the original modified date) and file’s modified date is prior to “File Retention” specified days (for example, 1 year ago), the file is deleted by “File Retention” app.

I would appreciate any help on this.

Thanks in advance!
Albert

=====================================

Nextcloud version: 15.0.5.3
Operating system: Ubuntu 18.04.2 LTS
Mysql version: 10.1.38
Apache version: 2.4.29
PHP version: 7.2.15

Hello,

I did some additional tests, and here’s what I’ve found:

  • Chrome for Windows (v73.0.3683.86)
    Uploads bigger than 10MB keeps original modified date.
    Uploads smaller than 10MB modified date/time changes to current.

  • Microsoft Edge (Windows 10 1803)
    All upload’s modified date/time changes to current.

We assume that Edge’s behavior is the correct one. We didn’t found how to solve it in Chrome.

Thanks!
Albert

Hello again,

Did more tests with other browsers, and here are the results:

  • Chrome for Windows (v73.0.3683.86)
    Uploads bigger than 10MB keeps original modified date.
    Uploads smaller than 10MB modified date/time changes to current.

  • Firefox for Windows (v66) and also ESR v60
    Uploads bigger than 10MB keeps original modified date.
    Uploads smaller than 10MB modified date/time changes to current.

  • Microsoft Edge (Windows 10 1803)
    All upload’s modified date/time changes to current.

  • Microsoft Internet Explorer 11
    All upload’s modified date/time changes to current.

We would appreciate any help on fixing this on Chrome/Firefox.

Thanks,
Albert

I can reproduce this with NC 15 on Firefox (win 10). Please file a bug report on https://github.com/nextcloud/server/issues

Thanks @tflidd, I’ve issued it on Github.

For later reference, let me add the link to the created issue ticket: