update method for file submission