With fx-upload
you can embed uploaded content into an XML file.
If looking for a plain upload to server use a standard HTML form upload instead.
The additional filename
and mediatype
attributes are XPath expressions
pointing to the node you want the information to go.
Try an upload and see these nodes to be updated. The mimetype is returned by the browser and is based on guessing the mimetype by file extension.