we can't rely on array_pop() because multipart form data will have
doulble line breaks in them.