silx-kit / vscode-h5web

VSCode extension to explore and visualize HDF5 files
https://marketplace.visualstudio.com/items?itemName=h5web.vscode-h5web
MIT License
31 stars 5 forks source link

Allow opening very large files manually from inside the webview #41

Closed axelboc closed 5 months ago

axelboc commented 5 months ago

So ... <input type="file"> works inside webviews, duh!

Peek 2024-04-19 13-54

It's not the ideal UX, but it's a workaround for now.

Now I'm wondering whether this UX is better than to try loading a 1.9 GB file into memory... But then where do you put the limit. I could add a command to open a "standalone" H5Web webview with a file picker like this but then discoverability would be a problem.

I think I'll wait to see what the performance is like with a provider that can do range requests (cf. https://github.com/silx-kit/h5web/issues/1264), as this might give us a more generic solution.