file download starts from beginning