Fix bug in upload paths