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 |
---|---|---|
|
|
A still image file, such as JPEG, TIF, PNG. |
|
|
A video file, such as MP4, MOV, FLV. |
|
|
An audio file, such as WAV, MP3, AAC. |
|
|
A document or presentation file with one or more pages or slides, such as PDF, DOC, PPT. |
|
|
Vector based graphics |
|
|
All other file types |
Note that photoAttributes
is optional. It is only present if camera (EXIF) data is 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. The default configuration should cover most common file types. For a list of file types supported by FotoWeb, see Supported file formats.