uploader_form_html5.html 1.4 KB

12345678910111213141516171819202122
  1. <div id="__form_container_id__" class="bx-uploader-form-cont bx-popup-width">
  2. <div id="__div_id__" class="filepond bx-uploader-html5-drop-area border-2 border-gray-300 dark:border-gray-700 text-gray-700 dark:text-gray-300 bg-gray-50 dark:bg-gray-900/50 border-dashed rounded-lg"></div>
  3. <input type="text" id="__focus_div_id__" class="bx-uploader-html5-paste-catcher" tabindex="1" />
  4. <div class="bx-def-padding-sec-bottom bx-def-font-small">__restrictions_text__</div>
  5. <div id="__errors_container_id__" class="bx-uploader-html5-errors-area bx-def-font-small"></div>
  6. <div class="bx-uploader-html5 bx-def-margin-top bx-clearfix">
  7. <div class="bx-btn" onclick="__uploader_instance_name__.onClickCancel()"><bx_text:_sys_uploader_close /></div>
  8. </div>
  9. </div>
  10. <script>
  11. __uploader_instance_name__.initUploader({
  12. 'maxFilesize': __max_file_size__/1024.0/1024.0,
  13. 'acceptedFiles': __accepted_files__,
  14. 'resizeWidth': __resize_width__,
  15. 'resizeHeight': __resize_height__,
  16. 'resizeMethod': __resize_method__,
  17. 'dictDefaultMessage': '<bx_text_js:_sys_uploader_html5_default_message />',
  18. 'dictFileTooBig': '<bx_text_js:_sys_uploader_html5_file_is_too_big />',
  19. 'dictMaxFilesExceeded': '<bx_text_js:_sys_uploader_html5_number_of_files_exceeded />',
  20. 'dictInvalidFileType': '<bx_text_js:_sys_uploader_html5_invalid_file_type />',
  21. });
  22. </script>