My application is able to process folders and files, allowing me to filter and sort them, but to have all the data I currently have to reupload the files manually everytime on an input file element to then have access to the target.files parameter with all the files data in it.
I want to have to only upload those files once in my Angular Electron app and not everytime. For this I see 2 ways but I'm not sure if any of them is feasable.
- Store the directory's path (like "C:\User\Documents\Folder") and load it at startup
- Copy all files on the project directory
I can have the path in many way, like getting it from the first files upload, or even have some txt file/config parameter in the project, but since FS doesn't seem to work on Angular side, I don't see how I could fetch those files to then process them. Maybe something to do on Electron side to pass it to Angular?
Another way would be to have the files stored locally, like using Electron's Drag & Drop and copy them in a "files" folder, but is there a way to fetch them on the Angular side to process them like with the input's target.files parameter?