Page 1 of 1

File's original properties

PostPosted:Fri May 10, 2019 12:20 pm
by zaans2
Is it possible to use the file's original properties when uploading a new document?

Now if User x uploads the document it says that that user is the author. I have a lot of documents not made by me originally that I want to import, but I want the author to be set to the author of the file, not me.

Same goes for creation date and last updated date. I would like those to be the corresponding dates of the file, not when it was uploaded to the system.

Re: File's original properties

PostPosted:Sat May 11, 2019 10:05 am
by jllort
Might be, but for it should be done a specific import process, because the date might be is not in the document's metadata and only in the file system. In the other hand should be read metadata ( if exist, not all the documents types have it ).

Re: File's original properties

PostPosted:Sat May 11, 2019 3:14 pm
by zaans2
So this would have been done with automation or a script?

Re: File's original properties

PostPosted:Tue May 14, 2019 5:04 am
by jllort
Getting metadata from documents should be done with automation, but I'm not 100% sure about document date, might be this data is not set in into the metadata. I think we are using internally POI but the most complete library is TIKA ( we do not include it sure because it is a large library ).

https://www.tutorialspoint.com/apache_p ... action.htm
https://stackoverflow.com/questions/480 ... m-doc-docx
https://www.tutorialspoint.com/tika/tik ... action.htm
https://jeffmershon.wordpress.com/2013/ ... using-poi/