4

When uploading documents to LiveLink (we're using 9.7.1) the original create data on the file is changed to the date/time the file was uploaded. This make sense, but is there an easy way to upload files and preserve the file create date?

Third party solutions or specific approaches for custom development would be helpful. The emphasis is on easy. We're going to want to upload discrete sets of data multiple times, as opposed to a large set of of data one time.

General approaches and solutions not specific to LiveLink 9.7.1 aren't helpful.

matt eisenberg
  • 183
  • 6
  • 21

5 Answers5

3

The easiest solution I can think of is to use LAPI. LAPI contains functions for uploading documents, and once they are uploaded, you can modify its properties (including the create date) with the UpdateObjectInfo function.

chris
  • 16,324
  • 9
  • 37
  • 40
  • This works with LAPI but not with LL WS. And you'll get into more trouble with other system properties like the last modification time. Generally, you'll save your nerves when you design the transition of system properties from the original environment differently; by using LL category attributes, for example. – Ferdinand Prantl Feb 11 '12 at 15:06
1

I have never found this to be possible with Linux or Windows. DataTime fields are locally stored - they are not written to the file you are changing or moving.

This is also a logical conclusion ... if you change the datetime and an operating system placed that datetime in the file it would change the MD5 hash, therefore changing the file.

Also you could do a server-side script to get the date of the file before upload, then write it to the file as soon as it is uploaded.

tcables
  • 1,231
  • 5
  • 16
  • 36
  • I understand I could do a server-side script to get and then write the date. Do you have any specific suggestions on how to go about doing that? Object Importer + OScript? Something else? – matt eisenberg May 12 '11 at 15:35
  • You would have to embed a script or code into the page/thing where you are uploading the file to grab it's modified and created date, store them till upload complete, then write those dates back to the file. – tcables May 15 '11 at 05:13
0

You can preserve the creation date when uploading documents using the Object Importer

The creation date can be found in the tag in the xml files used within the OI

Abd H.
  • 3
  • 2
0

I would recommend not to play with the so called system attributes (creation date, modified date) in Content Server (Livelink). Instead, if the File creation date is of business significance to you, store this date into a custom category/date attribute field (making it read-only). This can be very well done either using LAPI from external application, if your external application provides File upload functionality. If you are using out-of-the box File upload screen, you can achieve this by over-riding post-node-creation scripts from LLNODE module.

Mangesh
  • 1
  • 1
0

I know nothing of the program you speak of but this might help you come to a solution:

  1. Read the file created/modified time before upload
  2. Upload
  3. Upon upload completion use a command line tool of some sort to change the file created/modified time.

If you are on Windows there is this http://www.nirsoft.net/utils/nircmd.html it supports changing created/modified time on files via command line.

Scott
  • 3,967
  • 9
  • 38
  • 56