Check for $newName in upload()

Repair functionality of setName() when uploading
Merge pull request #21 from cs475x/master

Restore functionality of getName