Fixed local state of file after a successful reupload