bugfix: parse_multipart function now truncates files appropriately