Added method for getting file size before downloading