3 ms·
If they are single files or directories they could be drag dropped on use. Not very convenient though. Maybe just some sort of api to give the website fine gra
by CapsAdmin 2y ago
If they are single files or directories they could be drag dropped on use. Not very convenient though.
Maybe just some sort of api to give the website fine grained access to the filesystem might be enough. You'd specify a directory or single file the website can read from at any time.
However at some point you will have to download large files. I feel when done implicitly it's bad user experience.
On top of that the developer should implement a robust downloading system that can resume downloads, check for validity, etc. Developers rarerly bother with this, so the user experience is that it sucks.
- jampekka 2y agoThere is such API. https://developer.mozilla.org/en-US/docs/Web/API/File_System_API https://developer.mozilla.org/en-US/docs/Web/API/File_System...
- elpocko 2y agoStill requires drag&drop on most browsers because the File/DirectoryPicker API isn't universally supported.
- jampekka 2y agoOrigin private file system is supported in all modern browsers. That does make sharing the models between origins difficult at best, but for one origin works fine. And in any case it's easier to direct users to install Chrome (or preferably Chromium) or instruct drag&drop than doing the brittle and error and bitrot prone virtualenv-pip-docker-git song and dance.