You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When dropping a large file into egui on the web, eframe always reads the whole file---even if file drop events aren't handled. Drag a particularly large file into egui, and eframe will try to load the whole thing into memory. This isn't ideal.
It would be nice to read dropped files in parts, and only on demand. Seems that Blob.stream() is how JS usually does it, but my knowledge of web is limited.
Is your feature request related to a problem? Please describe.
When dropping a large file into
egui
on the web,eframe
always reads the whole file---even if file drop events aren't handled. Drag a particularly large file into egui, and eframe will try to load the whole thing into memory. This isn't ideal.The code below is problematic:
egui/crates/eframe/src/web/events.rs
Lines 563 to 589 in ca36f3d
Describe the solution you'd like
It would be nice to read dropped files in parts, and only on demand. Seems that
Blob.stream()
is how JS usually does it, but my knowledge of web is limited.May be related to #3702
The text was updated successfully, but these errors were encountered: