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 type of the asset and also 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, ...

Movie

videoattributes

A video file, such as MP4, MOV, FLV, ...

Audio

 

An audio file, such as WAV, MP3, AAC, ...

Document

documentattributes

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

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

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.

  • Was this article helpful?