Archived from the Transloadit support forum. Originally posted on July 18, 2012; details may be outdated, see our docs for current behavior. Original thread
I NEED the ogg format to be stored with the header ‘audio/ogg’ for use with Firefox/HTML5. Is there a more efficient way of doing this? By default the content type for ogg is set to x-audio/ogg. Ideally I’d specify a variable in the /audio/encode step which can be used in the ‘store’ step but I’m not sure if this is possible?
I am not quite sure, though, what the questions is, because your syntax with the Content-type header looks just fine and is also the most efficient way.
The Content-Type header IS fine. My concern is that I’ve had to add two different /s3/store robots in order to accomplish the task. This means a lot of the configuration for those robots are duplicated causing a maintenance headache. It would be nicer if I could set the content-type dynamically based on the previous steps. Please take a closer look and I think it should be obvious.
Sorry for the confusion. I see what you mean. Unfortunately our API currently does not allow for a more efficient way to deal with this. That being said, it seems like we could also solve your problem by making sure we make audio/ogg the default header for ogg? What do you think?