Fixed downloaded/uploaded files not having their new names properly set
after renaming.