Thank you very much for your answer, it helped me a lot.
Now I have a question, how can I get the directory of my file once I select it?
Next, I show the code on which I am basing myself. I understand that in these variables, there is the metadata of the media file that I select, but I can't locate the path (on my computer) where it was in the file when it was selected.
var file = args.file.rawFile;
var reader = new FileReader();