xdmp.getRequestFieldContentType( field-name as String ) as Sequence
This function is used to extract the content type from the request field.
It returns a sequence of content types, one for each filename, in the
same order as the filenames returned from
xdmp.getRequestFieldFilename
.
Parameters | |
---|---|
field-name | The name of the request field with the multipart request. |
xdmp.getRequestField
documentation.
// Returns the content type of the files loaded in the // "upload" input form element. xdmp.getRequestFieldContentType("upload"); => "application/msword"