Fix return doc for UploadBase::isAllowed

Method can return bool or string

Change-Id: Ib290843ce97926bfc529d510b1898f35c7e3f6c6