We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No response
This is how we check for file extensions:
elysia/src/type-system.ts
Lines 207 to 227 in 9007186
But we have wildcard file types:
Lines 103 to 157 in 9007186
If we use wildcards in the extension, type checking will always fail:
function check(options, type) { if (options.extension) if (typeof options.extension === "string") { if (!type.startsWith(options.extension)) return false } else { for (let i = 0; i < options.extension.length; i++) if (type.startsWith(options.extension[i])) return true return false } } check({ extension: ["image/*"] }, "image/jpeg") // false check({ extension: ["image/*"] }, "image/png") // false
Is this intentional?
node_modules
bun.lockb
The text was updated successfully, but these errors were encountered:
@Huliiiiii Already done #877
Sorry, something went wrong.
No branches or pull requests
What version of Elysia is running?
No response
What platform is your computer?
No response
What steps can reproduce the bug?
This is how we check for file extensions:
elysia/src/type-system.ts
Lines 207 to 227 in 9007186
But we have wildcard file types:
elysia/src/type-system.ts
Lines 103 to 157 in 9007186
If we use wildcards in the extension, type checking will always fail:
Is this intentional?
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?No response
The text was updated successfully, but these errors were encountered: