: This article mainly introduces the Post error: error code 40005, returned error message: invalidfiletype. if you are interested in the PHP Tutorial, refer to it. Deploy PxxCms to the customer. when sending text and text via the group function, the following error occurs: Post error: error code 40005, error message returned: invalid file type. php cannot be recovered...
Google's blog of a brother has a solution, but the tmd charges fees...
Find the sendAll method of \ PigCms \ Lib \ Action \ User \ MessageAction. class. php, which contains about 112 rows, and change it to the following: comment out the first line of file_put_contents (...);
// Optional ', file_get_contents ($ img ['Pic']); $ postMedia ['media '] = $ _ SERVER ['document _ root']. str_replace ('http ://'. $ _ SERVER ['http _ host'], '', $ img ['Pic ']);
The reason depends on the code.
The above introduces the Post error: error code 40005, returned error message: invalid file type, including the content, hope to be helpful to friends interested in the PHP Tutorial.