上传到 OpenText LiveLink 时保留原始文件日期

发布于 2024-11-03 17:38:15 字数 260 浏览 4 评论 0原文

将文档上传到 LiveLink 时(我们使用的是 9.7.1),文件上的原始创建数据将更改为文件上传的日期/时间。这是有道理的,但是有没有一种简单的方法来上传文件并保留文件创建日期?

第三方解决方案特定定制开发方法将会有所帮助。重点是简单。我们希望多次上传离散的数据集,而不是一次上传大量数据。

非特定于 LiveLink 9.7.1 的通用方法和解决方案没有帮助。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

韵柒 2024-11-10 17:38:15

我能想到的最简单的解决方案是使用 LAPI。 LAPI包含用于上传文档的函数,一旦上传,您可以使用UpdateObjectInfo函数修改其属性(包括创建日期)。

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.

愿得七秒忆 2024-11-10 17:38:15

我从来没有发现这在 Linux 或 Windows 上是可能的。 DataTime 字段存储在本地 - 它们不会写入您正在更改或移动的文件中。

这也是一个合乎逻辑的结论...如果您更改日期时间并且操作系统将该日期时间放入文件中,它将更改 MD5 哈希值,从而更改文件。

您还可以执行服务器端脚本来在上传之前获取文件的日期,然后在上传后立即将其写入文件。

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.

哭了丶谁疼 2024-11-10 17:38:15

我对您所说的程序一无所知,但这可能会帮助您找到解决方案:

  1. 在上传之前读取文件创建/修改时间
  2. 上传上传
  3. 完成后,使用某种命令行工具来更改文件创建/修改时间。

如果您使用的是 Windows,则有此 http://www.nirsoft.net/utils/nircmd.html 它支持通过命令行更改文件的创建/修改时间。

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.

流年已逝 2024-11-10 17:38:15

使用对象导入器上传文档时可以保留创建日期

创建日期可以在 OI 中使用的 xml 文件的标签中找到

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

如日中天 2024-11-10 17:38:15

我建议不要使用 Content Server (Livelink) 中所谓的系统属性(创建日期、修改日期)。相反,如果文件创建日期对您具有业务意义,请将此日期存储到自定义类别/日期属性字段中(使其只读)。
如果您的外部应用程序提供文件上传功能,则可以使用外部应用程序的 LAPI 很好地完成此操作。
如果您使用开箱即用的文件上传屏幕,则可以通过覆盖 LLNODE 模块中的节点创建后脚本来实现此目的。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文