Convert recordUpload2() to using startAtomic/endAtomic