Replace deprecated WebRequest::getFileSize()

Change-Id: I37f3d4e5c43a456ed033b7b502ef5fcf61e69daa