Currently, some websites automatically add Content-type: imagegif and other headers before the files, causing damage to the binary files. Therefore, I have compiled a php program for uploading binary files in text mode. There are two files in total: index. php and action. php. Change the file name to test. put the two files together and run index. php: Select "read" to Copy all the data read. when uploading files to some websites, the Content-type: image/gif header is automatically added to the front of the file, the binary file is damaged. Therefore, I have compiled a php program for uploading binary files in text mode.
There are two files in total: index. php and action. php. Change the file name to test. put the two files together and run index. php, select read, Copy all the data read, run this program on the remote server, Paste to the input box, and choose save. The binary file is uploaded.
Index. php
---------------------------------------------------------
PHP program for uploading binary files in text mode
---------------------------------------------------------
Action. php
---------------------------------------------------------