After the UE editor is deployed to the server, the uploaded image shows that the temporary file cannot be found. The error is combined with the network resource and the cause is: Configure php. ini; upload_tmp_dir = "C:/upload/temp", that is, the sub-folder temp under the upload file of drive C of the server, I set the full control permission accordingly, for read and write operations, both the upload and temp folders are available. then, I restart the server... Why?
Reply to discussion (solution)
It seems that this is the reason, but the error is still prompted after going through the process. [the code is the same, the path is also set, and there is no local problem, server error: for example, if my local website is www/XXX and the server is also web/XXXX, isn't it a path problem ?? Welcome to the discussion ..
Check whether the size of the uploaded file exceeds the configured size limit.
Check whether the size of the uploaded file exceeds the configured size limit.
No. it's 20 MB. it seems that this image is only big. it should be dozens of KB.
If I use JQ's uploadfile to upload an image, then OK... Is it difficult to configure my UE project? my server is like this path D:/XXX/web/fht: this is my project name: fht, my local is: e: \ wamp \ www \ fht. all my project configurations are written in absolute paths.
The temporary file cannot be found, which is the custom error message of ue.
The conditions are as follows:
If (! File_exists ($ file ['tmp _ name']) {
$ This-> stateInfo = $ this-> getStateInfo ("ERROR_TMP_FILE_NOT_FOUND ");
When the error level is E_ALL ^ E_NOTICE
If no file is uploaded, the value of UPLOAD_ERR_NO_FILE is 4.
This error is also reported.
So you should try to see the original php error information so that you can accurately identify the problem.
File_put_contents('test.txt ', print_r ($ _ FILES, 1 ));
Observe the content of the test.txt file
It should be an environment issue, mainly because the path tmp_name
To put it simply, there is no local problem. an error occurs when uploading data to the server. This should be a path problem, but I wrote an absolute path .. It's hard to figure out. it's going to happen next week.
It should be an environment issue, mainly because the path tmp_name
Specifically, I have been working for a long time and I don't know where to change it.
Unable to upload images in IIS + PHP. I am using Apache locally, and the server is using IIS. I am sorry for the configuration file permission ..