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

fix: handleSubmit fails in React Native due to missing FileList class when with attachments #3831

Open
youngboy opened this issue Nov 21, 2024 · 0 comments
Labels
ai/ui bug Something isn't working

Comments

@youngboy
Copy link

Feature Description

When using attachments in React Native environment, handleSubmit fails because it depends on FileList which is not available in React Native.

Issue Details:

  • The handleSubmit method fails when processing attachments
  • FileList class is used for attachment handling but not available in React Native
  • Only occurs when submitting with attachments

Current Workaround:
Using a temporary polyfill:

if (Platform.OS !== "web") {
  global.FileList = function FileList() {};
}

### Use Cases

_No response_

### Additional context

_No response_
@youngboy youngboy added the enhancement New feature or request label Nov 21, 2024
@lgrammel lgrammel added bug Something isn't working ai/ui and removed enhancement New feature or request labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/ui bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants