Why PHP upload pictures, print out the type of picture is the picture type is Application/octet-stream, I found on the computer image type is image/png moved to the phone upload image, found to be application/octet-stream
Reply content:
Why PHP
Why does PHP Upload images? The printed image type is applicationoctet-stream. I found on my computer that the image type is imagepng and moved to my mobile phone to upload images, we found that applicationoctet-stream is used to upload images in
// Specify a stream that cannot be read by the client and must be downloaded.Response. contenttype = "application/X-msdownload ";
Mime
The MIME type is the type used by an application to open a file with a certain extension. When a file with the
The browser determines how to display the returned message body Content based on Content-Type. The following describes the Content-type, that is, the Type of the HTTP request header, if you are interested in content-type, you must know in advance
Use header in php to set content-type and content-type of common file types
Use header in php to set content-type and content-type of common file types
In PHP, you can use the header function to send header information and set the content-type
Using JavaScript to read binary files and use ajax to transmit binary streams, javascriptajax
Based on Multiple tutorials on the Internet and the methods obtained by our own practices, Alibaba Cloud is currently compatible with Google, IE11, and ie10
Http://msdn.microsoft.com/en-us/library/ms775147.aspx
MIME type detection in Internet Explorer
In Microsoft Internet Explorer 4.0 and later, MIME type determination occurs in URL monikers through the findmimefromdata method. determining the
Use the header in php to set the content-type and common file types. In php, you can use the header function to set content-type and common file types in content-typephp. in PHP, you can use the header function to set content-type and common file
Introduction: in HTTP requests, we use Content-type every day to specify different formats of request information, but few people have a thorough understanding of how many values are allowed in content-type, and this will explain Content-type
Introduction: In HTTP requests, we use Content-type every day to specify different formats of request information, but few people have a thorough understanding of how many values are allowed in Content-type, and this will explain content-type
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.