Record size of files and update it when files are re-uploaded