Document Types
Overview
This article lists all possible values of the doctype
attribute of an asset in the API. This attribute specifies the type of the asset and also 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 there is camera (EXIF) data included in the image.
Remarks
In general, 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 which are supported by FotoWeb, please see here.