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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: webapp upload file (#10195)
zxhlyhdfa3ef05649e
diff --git a/web/app/components/base/file-uploader/hooks.ts b/web/app/components/base/file-uploader/hooks.tsindex a78c414913e..088160691bd 100644--- a/web/app/components/base/file-uploader/hooks.ts+++ b/web/app/components/base/file-uploader/hooks.ts@@ -216,7 +216,7 @@ export const useFile = (fileConfig: FileUpload) => {handleAddFile(uploadingFile)startProgressTimer(uploadingFile.id)- uploadRemoteFileInfo(url).then((res) => {+ uploadRemoteFileInfo(url, !!params.token).then((res) => {const newFile = {...uploadingFile,type: res.mime_type,diff --git a/web/service/common.ts b/web/service/common.tsindex 4ea2d9fd275..81b96aa97c4 100644--- a/web/service/common.ts+++ b/web/service/common.ts@@ -324,8 +324,8 @@ export const verifyForgotPasswordToken: Fetcher<CommonResponse & { is_valid: booexport const changePasswordWithToken: Fetcher<CommonResponse, { url: string; body: { token: string; new_password: string; password_confirm: string } }> = ({ url, body }) =>post<CommonResponse>(url, { body })-export const uploadRemoteFileInfo = (url: string) => {- return post<{ id: string; name: string; size: number; mime_type: string; url: string }>('/remote-files/upload', { body: { url } })+export const uploadRemoteFileInfo = (url: string, isPublic?: boolean) => {+ return post<{ id: string; name: string; size: number; mime_type: string; url: string }>('/remote-files/upload', { body: { url } }, { isPublicAPI: isPublic })}export const sendEMailLoginCode = (email: string, language = 'en-US') =>