MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / cleanupImageUpload

Function cleanupImageUpload

lib/image-upload.js:32–39  ·  view source on GitHub ↗
(uploadId)

Source from the content-addressed store, hash-verified

30}
31
32function cleanupImageUpload(uploadId) {
33 const upload = state.pendingImageUploads.get(uploadId);
34 if (!upload) return;
35 if (upload.tmpFile) {
36 try { fs.unlinkSync(upload.tmpFile); } catch {}
37 }
38 state.pendingImageUploads.delete(uploadId);
39}
40
41function cleanupClientUploads(ws) {
42 for (const [uploadId, upload] of state.pendingImageUploads) {

Callers 4

setupWebSocketServerFunction · 0.85
cleanupClientUploadsFunction · 0.85
startUploadCleanupFunction · 0.85
test-modules.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected