api handles when filesize is too big