File Upload Date

Hello everyone,

I’d like to preserve the original file date during upload.

Of course, it’s interesting to know when a document was uploaded to Dolibarr. However, losing the actual file date deprives you of an important sorting option. Is this possible without modifying the source code?

Regards, Udo

The best scenario is to have available both dates: the original of the file and the upload date.

which dolibarr version @inetuka and can you show a screenshot of the page where you would like to see these dates?

Hi Jon, I am on 22.0.4. Cheers!

I see. I think you should look for a similar feature request at dolibarrs github page, and if you can not find one, make one with the picture well

I think it is possible to implement this.
However, it requires modifying the source code…

In the browser (client), you can read the modification date of a file using JavaScript and append it to the form as a hidden POST parameter.
Keyword: HTML DOM Document lastModified

In Dolibarr (server), you read the POST parameter and set the date of the uploaded file accordingly, or append it to the file name, or write it in an extra field.