We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf26cf7 commit a418497Copy full SHA for a418497
apps/sim/lib/uploads/utils/file-utils.ts
@@ -255,6 +255,13 @@ export function inferContextFromKey(key: string): StorageContext {
255
return 'workspace'
256
}
257
258
+ // Local execution files: UUID segments separated by underscores/hyphens
259
+ // Pattern: {uuid}-{uuid}_{uuid}_{uuid}_{filename} (local storage format)
260
+ // This handles execution files stored locally without cloud storage
261
+ if (key.match(/^[a-f0-9-]{36}-[a-f0-9-]{36}_[a-f0-9-]{36}_[a-f0-9-]{36}_/)) {
262
+ return 'execution'
263
+ }
264
+
265
// Copilot/General files: timestamp-random-filename (no path segments)
266
// Pattern: {timestamp}-{random}-{filename}
267
// NOTE: This is ambiguous - prefer explicit context parameter
0 commit comments