When you upload the image by the HTTP Post method, you may receive the following error message returned by the HTTPPostResponseString property:
The problem may occur when the action page does not exist. To get more information about the action page, please refer to Related Articles.
Please make sure that the action page DOES exist at the specified directory on your web server. Please type the path of the action page directly in your IE address bar to see if you can find the file.
Or, you can alert the path of the action page to check the value. For example:
var CurrentPathName = unescape(location.pathname); // get current PathName in plain ASCII var CurrentPath = CurrentPathName.substring(0, CurrentPathName.lastIndexOf("/") + 1); strActionPage = CurrentPath + "SaveToFile.aspx"; //the ActionPage's file path alert (strActionPage);
Please pay more attention to the file name if you are using a case sensitive server such as Tomcat.