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 ) : void
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!