How to set php mime type

藏色散人
Release: 2023-03-02 18:36:02
Original
4011 people have browsed it

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".

How to set php mime type

##CURLFile::setMimeType

(PHP 5 >= 5.5.0, PHP 7)

CURLFile::setMimeType — Set the MIME type of the uploaded file

Recommended: "

PHP Tutorial"

Instructions

public CURLFile::setMimeType ( string $mime ) : void
Copy after login

Parameters

mime

The MIME type in the POST data.

Return value

No 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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template