5255 moved mysql_insert_id prior to the file upload to get the insert id as the certify if