4 ms·
So if I open a 2g file in a web app, I have to upload 2g?
by withinboredom 5y ago
So if I open a 2g file in a web app, I have to upload 2g?
- haxiomic 5y agoThe file doesn't need to be uploaded for it to be edited within a web app – everything can be 100% local, including saving editor state (through local-storage). The only network access absolutely necessary is downloading the web app code initially but after first load it's possible for a web app to work offline
- yathern 5y agoNope. The file data is open within the browser context, and from there the app can decide what to do with it - which may entail uploading it, but doesn't need to be. The same way you can open a file in photopea.com without uploading it to their servers.
- skybrian 5y agoNo, as I understand it the file is local and the JavaScript is also running locally in a browser sandbox. Also, the file is accessed in the usual way by opening it and reading from it. (There is a File System Access API that lets you get a FileSystemFileHandle and do random access.) You could write an uploader that sends the file over the network, or handle it entirely locally. It all seems to be Chrome only for now.