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(ui): accept files with valid catchall mimetypes in bulkUpload #8868

Conversation

akhrarovsaid
Copy link
Contributor

@akhrarovsaid akhrarovsaid commented Oct 25, 2024

fixes #8867

Solution for this came from existing valid mimetype validator found here.

@akhrarovsaid akhrarovsaid changed the title Fix/accept-files-with-valid-catchall-mimetypes-in-bulkupload fix(ui): accept files with valid catchall mimetypes in bulkUpload Oct 25, 2024
@akhrarovsaid
Copy link
Contributor Author

Just saw this gem of a PR and will be closing in favor of it for the following reasons:

  • Moved validating mime types to standalone helper utility
  • Better messaging to end users on invalid files submitted via toast

@jmikrut
Copy link
Member

jmikrut commented Oct 30, 2024

Ah @akhrarovsaid my bad, I did not see this PR. I would’ve taken this and gone from here!

thank you very very much for your Eagle eye

@akhrarovsaid
Copy link
Contributor Author

@jmikrut No worries at all! It's my pleasure - just glad this got resolved and in excellent fashion. Your PR helped me identify better practices here for future PRs to come.

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

Successfully merging this pull request may close these issues.

2 participants