Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ <h5 class="modal-title d-flex align-items-center gap-2">
</div>
</div>
<input type="file" class="form-control form-control-sm" id="fileInput" accept=".csv">
<div class="form-text small mt-1">
<i class="bi bi-info-circle"></i> Max 20 MB &middot; runs in your browser
</div>
<div id="uploadPreview" class="mt-2" style="display: none;">
<small class="text-muted">Preview:</small>
<div class="table-responsive" style="max-height: 150px;">
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ async function uploadFile() {
try {
const file = fileInput.files[0];
if (file.size > 20 * 1024 * 1024) {
throw new Error('File exceeds 20 MB cap — Pyodide runs out of memory on large CSVs.');
throw new Error('File is too large for the browser runtime — please subsample first (max 20 MB).');
}
const buf = new Uint8Array(await file.arrayBuffer());
const data = await pyCallBinary('upload_csv', buf, [file.name]);
Expand Down