10 Replies Latest reply on Dec 9, 2014 8:40 AM by ScottBleackley

    How to identify media type in a container field

    ScottBleackley

      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.