Fixed api-output of upload.