add a function for getting download file length