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

From Discord: Issue with Multipart.FilesSchema and Non-ASCII Filenames in Swagger Uploads #3942

Open
effect-bot opened this issue Nov 14, 2024 · 1 comment
Labels

Comments

@effect-bot
Copy link

Summary

A user is facing an issue with the Multipart.FilesSchema in the Effect Typescript library. When uploading files with non-ASCII filenames, such as Korean characters, from Swagger, the file key becomes empty, leading to an error message indicating that the "files" path is missing. This issue does not occur when using a <form /> tag, which properly encodes non-ASCII characters into UTF-8. They noted spending about 7 hours troubleshooting this problem and shared their findings for others who might face the same issue. Another community member, Maxwell Brown, acknowledged it might be a bug and planned to create an issue for it.

Key takeaways:

  1. There's an issue with Multipart.FilesSchema handling non-ASCII filenames in Swagger uploads.
  2. Using a <form /> tag seems to handle non-ASCII filenames correctly by encoding them in UTF-8.
  3. A potential bug report will be created for further investigation and resolution.

Discord thread

https://discord.com/channels/795981131316985866/1306578484042399755

@orlein
Copy link

orlein commented Nov 14, 2024

I've posted the issue on Discord and I thought this is not a bug, and it's just a mistake or something. If this is a bug, this should be fixed in validation inside Multipart.FilesSchema. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants