function fileName(blobInfo) {
			var ext, extensions;

			extensions = {
				'image/jpeg': 'jpg',
				'image/jpg': 'jpg',
				'image/gif': 'gif',
				'image/png': 'png'
			};

			ext = extensions[blobInfo.blob().type.toLowerCase()] || 'dat';

			return blobInfo.id() + '.' + ext;
		}
Upload blobs or blob infos to the specified URL or handler.

@private
@class tinymce.file.Uploader
@example
var uploader = new Uploader({
    url: '/upload.php',
    basePath: '/base/path',
    credentials: true,
    handler: function(data, success, failure) {
        ...
    }
});

uploader.upload(blobInfos).then(function(result) {
    ...
});