update upl_file method