Skip to content

feat: save detected file type in file object #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AzikDeveloper
Copy link

So that it can be accessed in model's clean() method to do extra validation or just to save the type to another field.

So that it can be accessed in model's clean() method to do extra validation or just to save the type to another field.
@AzikDeveloper AzikDeveloper changed the title feat: save detected file type in validated file object feat: save detected file type in file object Sep 9, 2023
@AzikDeveloper
Copy link
Author

Or we should expose a separate utility function to detect file type.

@AzikDeveloper
Copy link
Author

Or better return the detected file type :)

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.

1 participant