Aug 29th, 2006, 02:26 PM
File upload question
I couldn't find anything about this in the forums or documentation, so I don't know if this is possible to do with Spring's file upload capabilitles.
Is there a way to get an InputStream of an uploaded file's contents while the file is still being uploaded rather than have the file be buffered either to disk or memory?
From my brief testing it looks like my controller doesn't get called by the SpringDispatcherServlet until after the request has been fully read and buffered. This is a bit of a pain for really large uploads, especially if the app is only planning on doing a single-pass through the file to do its processing.