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

Function getUploadTimeoutMs

utils/upload.ts:143–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143function getUploadTimeoutMs(): number {
144 const value = (settings.store as { uploadTimeoutMs?: number; }).uploadTimeoutMs;
145 if (!Number.isFinite(value) || !value) {
146 return 60000;
147 }
148
149 return Math.max(5000, value);
150}
151
152async function fetchWithTimeout(url: string, options: RequestInit): Promise<Response> {
153 const controller = new AbortController();

Callers 4

fetchWithTimeoutFunction · 0.85
uploadRequestWithTimeoutFunction · 0.85
pollNativeUploadProgressFunction · 0.85
uploadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected