main rep upload