{% extends 'components/layouts/default.html' %} {% load static %} {% block content %}
<!-- single file --> <div class="custom-file-container" data-upload-id="myFirstImage"></div> <!-- script --> <script> new FileUploadWithPreview.FileUploadWithPreview('myFirstImage', { images: { baseImage: "{% static 'images/file-preview.svg' %}", backgroundImage: '', }, }); </script>
<!-- multiple file --> <div class="custom-file-container" data-upload-id="mySecondImage"></div> <!-- script --> <script> new FileUploadWithPreview.FileUploadWithPreview('mySecondImage', { images: { baseImage: "{% static 'images/file-preview.svg' %}", backgroundImage: '', }, multiple: true, }); </script>