Use the getFormat() method on the request object for content type negotiation, and fallback to html in the case of no Accept header.
Attach a file by drag & drop or click to upload