Replace deprecated WebRequest::getFileSize()

Change-Id: Ib59ed2776030c41d33bb85c986e1352fa40740ab