before complete fileUpload