dify/web/app/components/base/file-uploader/upload-context.ts
林玮 (Jade Lin) f93a5b95c6
fix(api, web): scope trial app file uploads to the app tenant (#39149)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-20 07:00:45 +00:00

11 lines
229 B
TypeScript

import { createContext, use } from 'react'
export const FileUploadContext = createContext<{
localUploadUrl?: string
remoteUploadUrl?: string
}>({})
export function useFileUploadContext() {
return use(FileUploadContext)
}