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

Support for uploads larger than 15 MB #336

Open
MasterK0927 opened this issue Dec 22, 2024 · 1 comment
Open

Support for uploads larger than 15 MB #336

MasterK0927 opened this issue Dec 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@MasterK0927
Copy link
Collaborator

MasterK0927 commented Dec 22, 2024

Currently, file uploads are limited to 15 MB due to concerns about blocking the main thread when handling larger files.

Relies on #124

Possible Solution:

  • Creating a web worker for handling the upload task, so that it doesn't blocks the main thread.
@MasterK0927 MasterK0927 added the enhancement New feature or request label Dec 22, 2024
@MasterK0927
Copy link
Collaborator Author

Initially, we suspected that the main thread was being blocked because of the .readAsDataUrl method used for reading the file, likely due to the overhead of handling large Base64-encoded data. However, even after offloading the file reading process to the Tauri backend by spawning it in a separate thread, the main thread still appears to be blocked.

This leads me to believe the issue might instead be related to how ImageStructs is being handled in ConversationStore.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant