Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File attachment is not working. #1223

Closed
hiroaki2020 opened this issue Nov 26, 2024 · 0 comments
Closed

File attachment is not working. #1223

hiroaki2020 opened this issue Nov 26, 2024 · 0 comments

Comments

@hiroaki2020
Copy link

hiroaki2020 commented Nov 26, 2024

I tried to attach files to msg but failed. Msg itself is processed properly but file data is not sent to server so only msg is processed.

<AssistantModal.Root
      config={{
        composer: {
          allowAttachments: true
        },
        
        ...
        <Composer.Root>
                <Composer.Attachments />
                <Composer.AddAttachment />
                <Composer.Input />
                <ThreadPrimitive.If running={false}>
                  <Composer.Send />
                </ThreadPrimitive.If>
                <ThreadPrimitive.If running>
                  <Composer.Cancel />
                </ThreadPrimitive.If>
              </Composer.Root>
      ...

I use Next.js and body parser is disabled on the route.

export const config = {
  api: {
    bodyParser: false
  }
}
@Yonom Yonom closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants