Closed ludeus closed 4 years ago
I think this handler is missing some params, like which chunk or file has fired it?
Please make it camelCase and add it to the docs
I added the xhr option, inspired by the jquery ajax xhr option (http://api.jquery.com/jquery.ajax/). An additional parameter gives the file object
This can be already be worked around by hijacking uploadMethod
:
uploadMethod = (uploadMethod, fileObj, chunk) => { chunk.xhr.onreadystatechange = () => 'foo'; return 'POST'; }
uploadMethod
looks like a workaround, so I think this could be merged
uploadMethod is a good solution
I need to add a listener on xhr, a quick fix would be to add an option