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

Function applyResumableRelativePath

public/js/upload.js:598–608  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

596}
597
598function applyResumableRelativePath(file) {
599 if (!file || typeof file !== 'object') return;
600 const rel = file.webkitRelativePath || file.customRelativePath || '';
601 if (rel && (!('relativePath' in file) || !file.relativePath)) {
602 Object.defineProperty(file, 'relativePath', {
603 value: rel,
604 writable: true,
605 configurable: true
606 });
607 }
608}
609
610function normalizeUploadPath(raw) {
611 return String(raw || '')

Callers 1

queueResumableFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected