BodyParser middleware for handling form submissions and file uploads