fix trailing line break added to upload part1

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