Make sure large file uploads are not loaded into memory
The current implementation relies on restlets for extracting the file from the POST multipart entity body. The RestletFileUpload is used to parse the request and yields an array of FileItems. From these FileItems an InputStream can be requested. If the implementation is done wrong (non-streaming) it will cause out of memory exceptions if some devious character decides to upload a very large file.
Added FileCleaningTracker to DiskFileItemFactory; introduced utility function and carried out some cleanup in the code
There is a disk cache for files exceeding a certain treshold, so currently not the whole content is loaded into memory which is good. However, there is no active cleanup thread for removing old temporary files. This needs to be fixed before this issue can be closed.
Double check default behavior of DiskFileItemFactory.