added close() for uploaded file's inputstream.