AnsweredAssumed Answered

How to identify media type in a container field

Question asked by ScottBleackley on Dec 7, 2014
Latest reply on Mar 21, 2018 by Vaughan

Title

How to identify media type in a container field

Post

How to identify media type in a container field

Using GetContainerAttribute(sourceField;attributeName) I seem to be able to get everything but the type of media that is stored there.  I would like to reduce the size of entered images stored in the database but only want to apply this to transformation to images and photos.  So I just need to identify the content type of the container field: i.e. image, photo, audio, quicktime, file etc.

I tried just looking at GetContainerAttribute (Self; "Width") which returns a number for images and photos but a ? for anything else.  I suppose if I knew how to test for ? I could use this, but there must be a better way.

Missing the obvious,
thank you, any suggestions are most welcome.

 

 

 

 

 

 

 

 

 

Outcomes