Loading TOC...

xdmp.getRequestFieldFilename

xdmp.getRequestFieldFilename(
   $field-name as String
) as ValueIterator

Summary

Returns a list of filenames from a multipart request for the field name specified. Returns an empty sequence for a field that does not exist.

Parameters
$field-name The name of the request field with the multipart request.

Usage Notes

This function is useful for file upload applications. For an example, see the second example in the xdmp.getRequestField documentation.

Example

//   Returns the filename of the files loaded in the
//   "upload" input form element.

xdmp.getRequestFieldFilename("upload")
=> "myfile.doc"

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy