MCPcopy Create free account
hub / github.com/error311/FileRise / getResumableChunkSizeBytes

Function getResumableChunkSizeBytes

public/js/upload.js:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26function getResumableChunkSizeBytes() {
27 const cfg = window.__FR_SITE_CFG__ || window.siteConfig || {};
28 const uploads = (cfg && typeof cfg === 'object') ? cfg.uploads : null;
29 const raw = uploads ? uploads.resumableChunkMb : null;
30 const num = parseFloat(raw);
31 const mb = Number.isFinite(num) ? Math.min(100, Math.max(0.5, num)) : 1.5;
32 return mb * 1024 * 1024;
33}
34
35// --- ClamAV scanning UI helpers ----------------------------------------
36

Callers 1

initResumableUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected