
xdmp.getRequestFieldFilename( field-name as String ) as Sequence
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. |
xdmp.getRequestField documentation.
// Returns the filename of the files loaded in the
// "upload" input form element.
xdmp.getRequestFieldFilename("upload")
=> "myfile.doc"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.