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.

462 B
Raw Blame
import type { DocumentUploadIssue } from '../../upload/policy'

export class DocumentStagingCanceledError extends Error {
  constructor() {
    super('Document staging was canceled')
    this.name = 'DocumentStagingCanceledError'
  }
}

type UploadApiExclusionReason =
  | 'batchLimit'
  | 'countLimit'
  | 'fileSize'
  | 'fileType'
  | 'processing'
  | 'quota'
  | 'target'

export type UploadExclusionReasonKey = DocumentUploadIssue | UploadApiExclusionReason