= function(options) {
var noop = function() {};
this.file = options.file;
this.contentType =
options.contentType || this.file.type || "application/octet-stream";
this.metadata = options.metadata || {
title: this.file.name,
mimeType: this.contentType,
};
this.token = options.token;
this.onComplete = options.onComplete || noop;
this.onProgress = options.onProgress || noop;
this.onError = options.onError || noop;
this.offset = options.offset || 0;
this.chunkSize = options.chunkSize || 0;
var params = options.params || {};
params.uploadType = "resumable";
this.
url = this.
buildUrl_(options.fileId, params, options.baseUrl);
}
this.httpMethod = options.fileId ? "PUT" : "POST";
}
MediaUploader prototype buildUrl_
Definition: image-file-uploader.js:503
var RetryHandler
Definition: image-file-uploader.js:249
const url
Definition: oauth-server.js:20