handle the multipart encoded request