Currently, when posting a file using multipart/form-data using the REST endpoint, any additional form fields that are posted are lost. They do not become part of the req object, available in the event handlers.
If this data becomes part of the req object, it will make it easier to post a file with additional metadata in one server roundtrip, saving the metadata to a data table in the afterupload event handler.