assets/scripts/medium-insert/images.js
function ($placeholder, file, that) {
				$.ajax({
					type: "post",
					url: that.options.imagesUploadScript,
					xhr: function () {
						var xhr = new XMLHttpRequest();
						xhr.upload.onprogress = that.updateProgressBar;
						return xhr;
					},
					cache: false,
					contentType: false,
					complete: function (jqxhr) {
						that.uploadCompleted(jqxhr, $placeholder);
					},
					processData: false,
					data: that.options.formatData(file)
				});
			}
function ($placeholder, file, that) {
				$.ajax({
					type: "post",
					url: that.options.imagesUploadScript,
					xhr: function () {
						var xhr = new XMLHttpRequest();
						xhr.upload.onprogress = that.updateProgressBar;
						return xhr;
					},
					cache: false,
					contentType: false,
					complete: function (jqxhr) {
						that.uploadCompleted(jqxhr, $placeholder);
					},
					processData: false,
					data: that.options.formatData(file)
				});
			}
function ( $placeholder , file , that ) { $ . ajax ( { type : "post" , url : that . options . imagesUploadScript , xhr : function ( ) { var xhr = new XMLHttpRequest ( ) ; xhr . upload . onprogress = that . updateProgressBar ; return xhr ; } , cache : false , contentType : false , complete : function ( jqxhr ) { that . uploadCompleted ( jqxhr , $placeholder ) ; } , processData : false , data : that . options . formatData ( file ) } ) ; }
Upload single file

@param {element} $placeholder Placeholder to add image to
@param {File} file File to upload
@param {object} that Context
@param {void}
Upload single file