HTTP POST file upload problem
To speak from M $, you are well known, even if two machines running Windows are in a local area network and network segment, set full sharing, and do not necessarily access files that have been shared (including direct use of IP) Address access is not possible), which has caused many troubles and troubles to developers need to pass files. So I found a program called Browser.jsp by Google, which integrates almost most of the file managers in a file, even EXEC. Run screenshot: http://blog.9cbs.net/images/blog_9cbs_net/wolfsquare/16699/r_browser.jsp.gif Although it is JSP, there is at least one web server with at least one J2EE developer is just one Not a problem, you can use the web mode to download files by accessing this page, and there is no Windows often can't find the computer's troubles. However, the actual use is found that the program does not support the Chinese directory, which is really a blow. Carefully view the code to find that it is a code problem in the monster, as a developer, I have to modify the Dafa change. After a while, the effect is good, just encountering a big file to download the interrupt can't break out, but this problem is not very important, I don't cover the jade. In a fake publica-privacy action, you suddenly use its file upload function, but it is found that this feature cannot be successfully uploaded, regardless of size. But your depressed is that this function is working properly in Tomcat, which is confused. Is it our AUPSIC server problem? In view of the rectification of the server, I have to modify the big knife, and I have explored the processing of the HTTP POST file. The problem is originally the Browser.jsp judgment segment separation flag, and the flag is taken from ContentYpe, but in APUSIC If you do not get this flag, refer to Smartupload, use everything after obtaining and processing segment separation flags in the upload input stream. However, when the SmartUpload is discovered, when the file is recorded, the same size byte array buffer is allocated from the memory ... This is not a good habit. Finally, pay attention to the program function is too powerful for system security, it is best to add a little restriction. After the modified file attached, Browser.jsp