I have two inputs: type="file" and type="url". Thus the user has the possibility to provide either a local file or a remote file.
In any case, after reading the file, the text should be processed by the same function func.
I already used fetch. However, fetch cannot handle local files (e.g. Fetch request to local file not working). Thus a combination with FileReader is the next idea. But FileReader is not async; a work around was suggested here.
But are there better way to handle this common situation?
 
    