final RequestContext context,
final ExternalContext externalContext,
final UploadedFiles files,
final MultipartFormItem item) throws IOException
{
final UploadedFile temp = new TempUploadedFile(item);
final UploadedFile file =
context.getUploadedFileProcessor().processFile(externalContext.getRequest(), temp);
if (file != null)
{
// Store the file.
files.__put(item.getName(), file);
if (_LOG.isFine())
{
_LOG.fine("Uploaded file " + file.getFilename() + "(" +
file.getLength() + " bytes) for ID " + item.getName());
}
}
}