Jump to content

Upload media to local ftrack server


natasha

Recommended Posts

Posted

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!

Posted
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 documentation

outfilemp4 = path to correctly encoded mp4 as in documentation

 

this works for us

 

//e

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...