natasha Posted September 30, 2015 Report Posted September 30, 2015 Hi, I'm trying to upload media to my local ftrack server.What API commands can I use to do this? I know I can't use ftrack.Review.makeReviewable(version, filePath) since I have a local ftrack server. I've also looked at http://support.ftrack.com/customer/portal/articles/1405640 which tells me how to make an already uploaded file reviewable on the web. However it does not mention how I can upload the file to the server. Do I need to use a seperate ftp service? Currently the only way I can upload media is via the web interface. I'm stuck at the same place as mentioned in this post:http://forum.ftrack.com/index.php?/topic/44-uploading-media-to-ftrackreview-via-api/?p=1162 Please help!
Erik Posted September 30, 2015 Report Posted September 30, 2015 baseAttachmentUrl = '/attachment/getAttachment?attachmentid={0}'attachment = assetVersion.createAttachment(outfilemp4)mp4Component = assetVersion.createComponent(name='ftrackreview-mp4', path=baseAttachmentUrl.format(attachment.getId()))mp4Component.setMeta(key='ftr_meta', value=metaData)metaData = meta data as described in documentationoutfilemp4 = path to correctly encoded mp4 as in documentation this works for us //e
natasha Posted October 1, 2015 Author Report Posted October 1, 2015 Thank you so much!! That worked perfectly!
Carl Claesson Posted October 21, 2015 Report Posted October 21, 2015 Hi, We've updated the API in 3.3 to support this case better. See this documentation for more information about the recommended way: http://ftrack.rtd.ftrack.com/en/latest/developing/reviewing/publish_components_for_review.html#developing-reviewing-publish-components-for-review-review-in-web-interface Cheers,Carl
Recommended Posts
Archived
This topic is now archived and is closed to further replies.