#2:  Moved the submission of filename and size AFTER file is closed