Home > Article > Backend Development > How to set mime in php
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 file Description
public CURLFile::setMimeType ( string $mime ) : voidParametersmimeThe MIME type in the POST data. Return valueNo return value.
If you want to know more about programming learning, please pay attention to thephp training column!
The above is the detailed content of How to set mime in php. For more information, please follow other related articles on the PHP Chinese website!