Understanding file media structure
Local installations of Flow Production Tracking are no longer offered. This documentation is intended only for those with existing instances of Flow Production Tracking Enterprise Docker. Click here for a list of our current offerings.
This article explains how thumbnails, filmstrips, and attachments are stored on locally installed sites.
It is intended for Flow Production Tracking Administrators.
File storage for thumbnails, filmstrips, and attachments
Files are stored in directories that are created by splitting entity IDs to derive a folder structure. This applies to thumbnails, filmstrips, and attachments. Each ID is left padded with the 0 character for a total string length of 12 characters. This string is then split into three sets of four characters, which become subdirectories of the storage location.
Below is an example of a thumbnail and filmstrip:
>>> v = sg.find('Version', [['id', 'is', 600783]], ['image', 'filmstrip_image'])
>>> v
[{'filmstrip_image': 'https://<site_url>/thumbnail/api_image/2228525?AccessKeyId=3mz9dEvIFPYCvjkj7RCH&Expires=1485537248&Signature=hPs0J5h2FlFBSHrk7NBNOkSOWcMqO26uT%2FJV0Jp0eqc%3D', 'image': 'https://<site_url>/thumbnail/api_image/2228524?AccessKeyId=3mz9dEvIFPYCvjkj7RCH&Expires=1485537248&Signature=wKSl1peDCLGNbo8aQiedo3Jt83F%2BSJVOH09RXZxRnxw%3D', 'type': 'Version', 'id': 600783}]
The thumbnail ID is the number after api_image
in the URL:
/media/files/0000/0222/8524/<filename>
The filmstrip ID is the number after filmstrip_image
in the URL at the following location:
/media/files/0000/0222/8525/<filename>
Attachments use the same model of splitting up the entity ID to form the directory where the file is stored, but the base path is slightly different. Media is Flow Production Tracking is stored in two distinct folders: one folder for thumbnails, and the other folder for videos and attachments. For example, given an Attachment
with an ID of 5625995
, you would find the actual file at this filesystem location:
/media/storage/production/files/0000/0562/5995/<filename>