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

Missing support to constrain allowed content types. #198

Closed
thet opened this issue Mar 14, 2024 · 1 comment
Closed

Missing support to constrain allowed content types. #198

thet opened this issue Mar 14, 2024 · 1 comment

Comments

@thet
Copy link
Member

thet commented Mar 14, 2024

We can restrict the allowed content types for file inputs on upload time on the client side like so:

<input type="file" name="file" accept="audio/mp3, audio/flac" />

or:

<input type="file" name="image" accept="image/*" />

this package is currently missing support for that.

Related:

@thet
Copy link
Member Author

thet commented Mar 15, 2024

Fixed with: #200 and #199

@thet thet closed this as completed Mar 15, 2024
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

1 participant