multipart/form-data
All you need to do to parse a request body is call RequestContext.parseBody
. This methodis idempotent, and only ever performs the body-parsing logic once, so it is recommended to callit any time you access the request body, unless you are 100% sure that it has been parsed before.
In the case of multipart/form-data
, Angel will also populate the uploadedFiles
field.The UploadedFile
wrapper class provides mechanisms for reading content types, metadata, andaccessing the contents of an uploaded file as a :
If the user did not provide a content-type
header when is called, a 400 Bad Request
errorwill be thrown.