Fix spacing of code in upload() method