Last change broke uploads altogether. Fix.