Let's take a look at the differences between ie9 and chrome when uploading files.
In ie, the full path is used, while Chrome is only the file name, resulting in the following error:
Solution
Although ckfinder is a commercial code, it is also an open source code. You can use it for demo. The source code directory structure is as follows:
Find the ckfinder.net. sln file under _ source, open it, and locate the code area shown in.
In the fileuploadcommandhandler. CS class file, locate the code area shown in the figure sendresponse. You can set the breakpoint debugging source code ofile. filename. You will find that, as shown on the interface, in chrome, this value is only the file name, And in IE, It is the full path.
Change the code
Sfilename = path. getfilename (ofile. filename );
Compile the entire solution. Copy the newly generated ckfinder. DLL to your work project.
Done !!!
If you think the article is useful to you, please "recommend" it. Thank you.