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?
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.