uploadImagesModal

Function used to upload media using filepicker.

Example Usage

$.fn.uploadImagesModal({
                tabs: ['COMPUTER'],
                onSuccess: function (data, textStatus, jqXHR) {
                  // handle response
                },
                beforeSend: function (jqXHR, settings) {
                },
                onComplete: function (jqXHR, textStatus) {
                }
            });

Parameters

ParametertypeRequiredDescription
tabsstringnoRequired tabs. e.g. COMPUTER

Example Response

{url: 'media-url', filename: 'media-name', type: 'media-type', size: 'media-size', mediaType: "image"}