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 PHP. The printed image type is application/octet-stream, on my computer, I found that the image type is image/png and moved to the mobile phone to upload the image. I found it was application/octet-stream.
Reply content:
Why does PHP Upload images? The printed image type is application/octet-stream. I found on my computer that the image type is image/png and moved to my mobile phone to upload images, application/octet-stream
It may be because the image type is not detected during the upload.Application/octet-stream
Represents any binary file. It does not affect the image content. Actual FileMimetype
It is determined based on several bytes starting with the file. AndPHP
It's okay.