Home > Backend Development > PHP Problem > How to set mime in php

How to set mime in php

coldplay.xixi
Release: 2023-03-06 13:58:02
Original
3389 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 mime in php

##CURLFile::setMimeType

(PHP 5 >= 5.5.0, PHP 7)

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

Description

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

Parameters

mime

The MIME type in the POST data.

Return value

No return value.

If you want to know more about programming learning, please pay attention to the

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

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