Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

465 B
Raw Blame
import type { FileUploadStrategy } from '@/app/components/base/file-uploader/upload-context'
import { uploadHumanInputFormLocalFile, uploadHumanInputFormRemoteFileInfo } from '@/service/share'

export const createLegacyFormUploadStrategy = (formToken: string): FileUploadStrategy => ({
  uploadLocal: (params) => {
    void uploadHumanInputFormLocalFile({ formToken, ...params })
  },
  uploadRemote: (url) => uploadHumanInputFormRemoteFileInfo(formToken, url),
})