Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2015-08-10 21:02:27

mdyason
Member
Registered: 2015-01-20
Posts: 43

Is there any tracking of deleted images

We intend to develop a routine that runs periodically that will simply be looking for any changes made to a file or its metadata.  We think we can simply do a search for any records where "Last Changed" is after the routine was last run.  We are going to use this to keep external databases up to date. 

Our problem is when a file is deleted from Third Light.  Is there any sort of list anywhere that keeps a record of deleted Image references and if so, is there API access to that record?  Alternatively, is it possible to have Third Light trigger a call of some description whenever a file is deleted?

Offline

#2 2015-08-11 09:50:04

steve
Third Light Staff
Registered: 2013-06-06
Posts: 105

Re: Is there any tracking of deleted images

Hi,

Deleted files are moved to a recycle bin and stay there for the amount of time configured via the Configuration > Site Options > Recycle Bins > flush interval setting.

Through the API you could firstly use RecycleBin_GetDetails() to obtain the id of the current recycle bin and then use Files_GetAssetsForParent($nRecycleBinId) to see the files within it.

Best Regards,
Steve

Offline

Board footer