fix trailing line break added to upload

fixes an issue where a line break is automatically added when uploading