mimetype contains the original MimeType of the field (i.e. 'text/plain', 'image/jpeg' etc.) return $buffer; } ?>