uploader_button_html5_js.html 1.2 KB

12345678910111213141516171819202122
  1. __uploader_instance_name__ = new BxDolUploaderHTML5('__engine__', '__storage_object__', '__uniq_id__', {
  2. 'multiple': __multiple__,
  3. 'content_id': '__content_id__',
  4. 'images_transcoder' : '__images_transcoder__',
  5. 'storage_private' : '__storage_private__',
  6. 'template_error_msg': '<div class="bx-uploader-msg-err">{error}</div>',
  7. 'template_ghost': __template_ghost__,
  8. 'reordering': __is_init_reordering__,
  9. 'maxFilesize': __max_file_size__/1024.0/1024.0,
  10. 'acceptedFiles': __accepted_files__,
  11. 'resizeWidth': __resize_width__,
  12. 'resizeHeight': __resize_height__,
  13. 'resizeMethod': __resize_method__,
  14. 'dictDefaultMessage': '<bx_text_js:_sys_uploader_html5_default_message />',
  15. 'dictFileTooBig': '<bx_text_js:_sys_uploader_html5_file_is_too_big />',
  16. 'dictMaxFilesExceeded': '<bx_text_js:_sys_uploader_html5_number_of_files_exceeded />',
  17. 'dictInvalidFileType': '<bx_text_js:_sys_uploader_html5_invalid_file_type />',
  18. 'on_upload_before': __on_upload_before__,
  19. 'on_upload': __on_upload__,
  20. 'on_restore_ghosts': __on_restore_ghosts__
  21. });
  22. <bx_if:restore_ghosts>__uploader_instance_name__.restoreGhosts(__is_init_reordering__);</bx_if:restore_ghosts>