close file after upload