Fix direction of upload