Resizing the file when it is uploaded