Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Sub-Process > Arbortext Publishing Engine Document Conversion > Loading a Document for Conversion > Determining the Input File Type
  
Determining the Input File Type
For a POST request, the input file type can be specified by the file-type=type parameter. If no file-type parameter is specified, the conversion processor attempts to determine the input file type by examining the file extension. The supported input file types, the file-type=type parameter values, and the associated file extension mapping are described in the following table.
Input file types
Input file type
file-type parameter values
File extension
SGML
sgml
.sgm, .sgml
XML
xml
.xml, .dita, .ditamap
HTML
html
.htm, .html
Microsoft Word
word
.doc, .docx
Adobe FrameMaker
frame
.mif
Rich Text Format
rtf
.rtf
Text
text
.txt
PDF
pdf
.pdf
Zip archive
zip
.zip
For a POST request passing the input file as the HTTP request body (no file or file-type parameter specified), the conversion processor determines the input file type according to the HTTP header parameter content-type as follows:
Mapping content-type header to input file type
Header value
Input file type
application/msword
Microsoft Word
application/pdf
PDF
application/rtf
text/rtf
Rich Text Format
application/vnd.framemaker
application/x-framemaker
application/x-frame
Adobe FrameMaker
application/zip
zip archive
text/html
HTML
text/plain
Text
text/sgml
SGML
text/xml
XML.