MCPcopy Index your code
hub / github.com/simstudioai/sim / abortHandler

Function abortHandler

apps/sim/lib/uploads/client/direct-upload.ts:239–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237 }, timeoutMs)
238
239 const abortHandler = () => {
240 if (isCompleted) return
241 isCompleted = true
242 clearTimeout(timeoutId)
243 xhr.abort()
244 reject(new DirectUploadError(`Upload aborted for ${file.name}`, 'ABORTED'))
245 }
246
247 if (signal) {
248 if (signal.aborted) {

Callers 1

uploadViaPresignedPutFunction · 0.85

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected