<T> upload code