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

Function normalizeUploadPath

public/js/upload.js:610–615  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

608}
609
610function normalizeUploadPath(raw) {
611 return String(raw || '')
612 .replace(/\\/g, '/')
613 .replace(/^\/+/, '')
614 .trim();
615}
616
617function getUploadPathForFile(file) {
618 if (!file || typeof file !== 'object') return '';

Callers 2

getUploadPathForFileFunction · 0.85
filterExistingUploadsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected