Hi there, Here is the context for this question: I have a file upload service running on Tomcat 6/7 using PUT method. The file could be very big, say a few GBs. The service needs to save the file to disk first. Then do checksum, digest the content(running some format conversion code against it), then store the file into a storage system, delete the temporary file on disk at last.
I have a few questions about how Tomcat serves PUT request: 1. What is the max file size that is allowed for a PUT request? I have seen some information for POST request, but can not find "official" answer with regard to PUT. 2. Suppose the file is allowed for upload. Tomcat must have saved it to disk somewhere before hand it out to the service. How can I get access to this file? I do not want to copy it via Servelet.getInputStream as it doubles the temp storage size. 3. Where are the related source code that could answer the first 2 questions. Can someone please give me some pointers? Thx a bunch! Yang