Skip to main content
Documentation & User Guides | FotoWare

Document types

Overview

This article lists all possible values of the doctype attribute of an asset in the API. This attribute specifies the asset type and determines which fields are present in the attributes subsection.

Document types

Value

Attribute fields

Description

Image

imageattributes, (photoAttributes)

A still image file, such as JPEG, TIF, PNG, and so on.

Movie

videoattributes

A video file, such as MP4, MOV, FLV, and so on.

Audio

 

An audio file, such as WAV, MP3, AAC, and so on.

Document

documentattributes

A document or presentation file with one or more pages or slides, such as PDF, DOC, PPT, and so on.

Graphic

 

Vector based graphics

Generic

 

All other file types

Note that photoAttributes is optional. It is only present if there is camera (EXIF) data included in the image.

Remarks

Generally, it is better to check explicitly if a field in attributes is present rather than checking doctype.  However, API clients can rely on these fields to be present based on document type. For example, when writing an application that works only on images, then the application can use and depend on attributes within imageattributes.

Which asset is classified as which document type can be configured on the server side. The default configuration should cover most common file types. For a list of file types that are supported by FotoWeb, see Supported file formats.

  • Was this article helpful?