In the function (file request-base.js)
RequestBase.prototype.field = function (name, value) {
.....
this._getFormData().append(name, value);
return this;
};
Actually Form data class has function to do append(name, value, options), which allow to add binary data, e.g. 'blob'.
So if you could change the function to be:
RequestBase.prototype.field = function (name, value, options) { // add options argument
.....
this._getFormData().append(name, value, options); // simply pass the options to form-data
return this;
};
Users could add binary data easily. I've tried locally and works fine.
In the function (file request-base.js) RequestBase.prototype.field = function (name, value) { ..... this._getFormData().append(name, value); return this; };
Actually Form data class has function to do append(name, value, options), which allow to add binary data, e.g. 'blob'. So if you could change the function to be: RequestBase.prototype.field = function (name, value, options) { // add options argument ..... this._getFormData().append(name, value, options); // simply pass the options to form-data return this; };
Users could add binary data easily. I've tried locally and works fine.