You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
There's an issue with Multipart.FilesSchema handling non-ASCII filenames in Swagger uploads.
Using a <form /> tag seems to handle non-ASCII filenames correctly by encoding them in UTF-8.
A potential bug report will be created for further investigation and resolution.
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?
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:
Multipart.FilesSchema
handling non-ASCII filenames in Swagger uploads.<form />
tag seems to handle non-ASCII filenames correctly by encoding them in UTF-8.Discord thread
https://discord.com/channels/795981131316985866/1306578484042399755
The text was updated successfully, but these errors were encountered: