". For some reason, the file name cannot be blank. The following is the code I wrote. myfile is a Chinese file name that cannot be obtained when a file is uploaded on the client.
". For some reason, the file name cannot be blank.
Below is the code I wrote, where myfile is the name of the input uploaded by the client.
PHP code
------ Solution --------------------
Bool move_uploaded_file (string $ filename, string $ destination)
This function checks and ensures that the file specified by filename is a valid file to be uploaded (that is, the file is uploaded through the http post Upload mechanism of PHP ). If the file is valid, move it to the file specified by destination.
I think this function lacks a $ destination parameter.
------ Solution --------------------
I have not carefully read the English language. in this case, I can start with coding.
Encodes a file name.
$ Dest_file = iconv ('utf-8', 'gbk', $ dest_file );
From UTF-8 to gbk or gbk to UTF-8, check which one is normal.