cancel
Showing results for 
Search instead for 
Did you mean: 

Upload files preserving creation date

mikegomez_
Champ on-the-rise
Champ on-the-rise

When I upload several files, creation date is changed from its original to the current upload date. How can I upload files preserving original creation date? Thanks.

1 ACCEPTED ANSWER

bruce_Grant
Elite Collaborator
Elite Collaborator

The date on the Nuxeo document is set to the current date because that's the date the Nuxeo wrapper document is created (not the attached binary object). There is no switch/configuration capability to change that basic functionality.

If you wish to preserve the file date then you could: (a) create a custom field to save the file date, or (b) Nuxeo doesn't recommend doing so, but you could change the dublincorelistener class to modify its behaviour. Both appproaches require customization, but (a) will be easier to maintain long term. Making changes to the dublincorelistener is possible but more involved.

View answer in original post

3 REPLIES 3

bruce_Grant
Elite Collaborator
Elite Collaborator

The date on the Nuxeo document is set to the current date because that's the date the Nuxeo wrapper document is created (not the attached binary object). There is no switch/configuration capability to change that basic functionality.

If you wish to preserve the file date then you could: (a) create a custom field to save the file date, or (b) Nuxeo doesn't recommend doing so, but you could change the dublincorelistener class to modify its behaviour. Both appproaches require customization, but (a) will be easier to maintain long term. Making changes to the dublincorelistener is possible but more involved.

Thanks. Can you point me to the documentation where I can find how to do (a)?

You'll have to create a simple plugin to add a new field and then populate it when a new document is imported/created You can use Studio to do this or create using the Nuxeo IDE (in eclipse). The nuxeo documentation site has numerous resources to get you started with either approach.