Handle 'file' and 'source' param as file-like obj.