Close input_file after upload