Instead of passing on data to this method, I would suggest checking if it's a multipart message and then use http://mojolicio.us/perldoc/Mojo/Content/MultiPart#body_size and set CONTENT_TYPE to "multipart/form-data" ..?