The problem was that you uploaded the files as root so the updated files didn't have the same owner, meaning that the updated files couldn't be moved from the temp folder to the public folder. I've already fixed it for you and I've added a method to detect owner issues in the future.