Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Apr 19, 2024

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. silx-kit/h5web#1264), as this might give us a more generic solution.

app/App.tsx Show resolved Hide resolved
@axelboc axelboc requested a review from loichuder April 19, 2024 12:03
Copy link
Member

@loichuder loichuder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good workaround !

@axelboc axelboc merged commit 0aa8d49 into main Apr 19, 2024
6 checks passed
@axelboc axelboc deleted the brwoser-file branch April 19, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants