Important changes to Tiny Cloud pricing > Find out more

tinymce.util.ImageUploader

This class handles uploading images to a back-end server.

Added in TinyMCE 5.7.

Methods

name summary defined by
upload() Uploads images to the configured image upload URL (`images_upload_url`) or passes the images to the defined image upload handler function (`images_upload_handler`). tinymce.util.ImageUploader

Methods

upload

upload(blobInfos:Array, showNotification:boolean)

Uploads images to the configured image upload URL (`images_upload_url`) or passes the images to the defined image upload handler function (`images_upload_handler`).

Parameters
  • blobInfos (Array) - A BlobInfo array containing the image data to upload. A BlobInfo can be created by calling `editor.editorUpload.blobCache.create()`.
  • showNotification (boolean) - (Optional) When set to true, a notification with a progress bar will be shown during image uploads.

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.