1
0
mirror of synced 2026-08-05 15:26:55 +00:00

FIX: Specify type for Rag upload (#895)

Specifying `type` when using `UppyUpload` will be required as of https://github.com/discourse/discourse/pull/29600.
This commit is contained in:
Osama Sayegh
2024-11-05 22:10:54 +03:00
committed by GitHub
parent ab4678275d
commit da7c97d294
@@ -24,6 +24,7 @@ export default class RagUploader extends Component {
uppyUpload = new UppyUpload(getOwner(this), {
id: "discourse-ai-rag-uploader",
maxFiles: 20,
type: "discourse_ai_rag_upload",
uploadUrl:
"/admin/plugins/discourse-ai/rag-document-fragments/files/upload",
preventDirectS3Uploads: true,