Add should accept a URL or a file path as it's input argument. Please read https://github.com/ipfs/interface-ipfs-core/pull/378