Alibabacloud.com offers a wide variety of articles about content type octet stream, easily find your content type octet stream information here online.
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
Because of too much content, we can search by ctrl+f
IE BrowserID suffix name PHP recognized file type0 gif image/gif1 jpg image/jpeg2 PNG Image/png3 BMP Image/bmp4 PSD Application/octet-stream5 ico Image/x-icon6 rar Application/octet-stream7 Zip
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
// 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
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
Void header (string [, bool Replace [, inthttp_response_coDe])Void header (string [, bool Replace [, inthttp_response_coDe])
Header () is used to send httpheader. Replace is an optional parameter, indicating whether to replace a similar header in
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.