Jinja/Jinja2 accept file #1226
Unanswered
Rafael-Ramblas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm building an uploader that allows the upload of jinja template files, but the browser returns me an empty string as the file type.
The goal that I'm pursing is to maintain the effect of
isDragReject
on a list of accepted types, but allowing this type of file.Does anyone knows how to achieve this?
Jinja files are just python templates with the extension
.py.j2
or.py.jinja2
A valid jinja2 template with the name of
example-template.py.j2
:File meta after upload:
Beta Was this translation helpful? Give feedback.
All reactions