Skip to content

Commit 9c4ad83

Browse files
committed
fix(providers): resolve UI attachment limit with the same model->provider helper as execution
The file-upload control imported getProviderFromModel from @/providers/models, but the execution path and every other consumer use the one in @/providers/utils (runtime registry + reseller patterns). Align the UI so its size cap can't disagree with server-side validation for reseller or dynamically-listed models.
1 parent d86041b commit 9c4ad83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/file-upload

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/file-upload/file-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
workspaceFilesKeys,
2626
} from '@/hooks/queries/workspace-files'
2727
import { getProviderAttachmentMaxBytes } from '@/providers/attachments'
28-
import { getProviderFromModel } from '@/providers/models'
28+
import { getProviderFromModel } from '@/providers/utils'
2929
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
3030
import { useWorkflowStore } from '@/stores/workflows/workflow/store'
3131

0 commit comments

Comments
 (0)