I am using the CommonsMultipartResolver for file uploads. However, by default it seems the temporary files are never removed. What is the best practice for removing these?
I noticed there is a cleanupMultipart in the MultipartResolver class. Is this what I should be using? If so, is there a way to just add the cleanup to an interceptor in the afterCompletion method? Any tips on how to do this would be appreciated.