Fix Sha1 Generation for large files

Files of around 1Gb and more can’t be uploaded because Sha1 generation
was made in one go. This iterative version fix that and allow uploads
of files larger than 1Gb.