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

Function getActiveUploadSourceId

public/js/upload.js:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const CHECK_EXISTING_URL = withBase('/api/upload/checkExisting.php');
12
13function getActiveUploadSourceId() {
14 const paneKey = window.activePane === 'secondary' ? 'secondary' : 'primary';
15 const paneSource = window.__frPaneState?.[paneKey]?.sourceId || '';
16 if (paneSource) return paneSource;
17 const sel = document.getElementById('sourceSelector');
18 if (sel && sel.value) return sel.value;
19 try {
20 const stored = localStorage.getItem('fr_active_source');
21 if (stored) return stored;
22 } catch (e) {}
23 return '';
24}
25
26function getResumableChunkSizeBytes() {
27 const cfg = window.__FR_SITE_CFG__ || window.siteConfig || {};

Callers 7

filterExistingUploadsFunction · 0.85
startResumableUploadNowFunction · 0.85
initResumableUploadFunction · 0.85
updateResumableQueryFunction · 0.85
submitFilesFunction · 0.85
initUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected