uploader_button_html5_js.html 1.2 KB

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