Home >Backend Development >PHP Problem >How to set php mime type
In PHP, you can use the "CURLFile::setMimeType" method to set the MIME type of the uploaded file. The syntax is "public CURLFile::setMimeType ( string $mime ) : void".
##CURLFile::setMimeType
CURLFile::setMimeType — Set the MIME type of the uploaded fileRecommended: "
PHP Tutorial"
Instructionspublic CURLFile::setMimeType ( string $mime ) : voidParametersmimeThe MIME type in the POST data. Return valueNo return value.
The above is the detailed content of How to set php mime type. For more information, please follow other related articles on the PHP Chinese website!