improve calendar#webapi#callback: check length of downloaded file