I need to send in the POST (chunks) request 2 parameters.
If I initialize DjangoResumable like this:
document.addEventListener("DOMContentLoaded", function () {
"use strict";
var dj;
if (new Resumable().support) {
var resumableOptions = {
query: {
'p': 'betagal1'
}
};
var djangoResummableOpts = {
resumableOptions: resumableOptions
}
dj = new DjangoResumable(djangoResummableOpts);
}
});
the resumableOptions are overwritten during the initResumable:
I need to send in the POST (chunks) request 2 parameters.
If I initialize DjangoResumable like this:
the resumableOptions are overwritten during the initResumable:
In the extend method, the whole query method (my customized options) are replaced by the 'default' ones ( the one with the 'csrfmiddlewaretoken')
Something that will fix it will be to recursively call extend if an object is found: and present in target: