I want to synchronize my dropzone allowfiles templates with my python upload config allowed files. I can get jinja to spit out my UPLOAD_EXTENSIONS with config.UPLOAD_EXTENSIONS but I can not figure out how to format it into a string that can be used in my javascript allowdfiles format. See below for what I get vs what I want.
jinja html template
<script>
let allowed_files = "{{ config.UPLOAD_EXTENSIONS }}";
console.log(allowed_files)
</script>
Console Log
['.jpg', '.png', '.gif']
What I want is this string
.jpg,.png,.gif