MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / finalizeUploadedUrl

Function finalizeUploadedUrl

utils/upload.ts:1274–1286  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1272}
1273
1274function finalizeUploadedUrl(url: string): string {
1275 if (!settings.store.stripQueryParams) {
1276 return url;
1277 }
1278
1279 try {
1280 const parsed = new URL(url);
1281 parsed.search = "";
1282 return parsed.href;
1283 } catch {
1284 return url;
1285 }
1286}
1287
1288function getAllowedExtensions(): Set<string> | null {
1289 const raw = (settings.store as { uploadAllowedFileTypes?: string; }).uploadAllowedFileTypes?.trim();

Callers 1

uploadPreparedBlobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected