Ref code upload