Choose between local file and url