blob response type #766
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hi there.
Please forgive me if i try to do things other way around.
Ma case is that i want to upload a file and get a file in return.
Almost everything works nice when i use the onCompleteItem just my excel file after download is broken.
When i change the xhr.responseType to "blob" in _xhrTransport method it works.
So maybe we should have second parameter in this method which will set the reponseType
that would be taken from new parameter in uploadItem?
update
never mind :) i fixed it with
this.uploader.onBeforeUploadItem = (item: FileItem) => {
item._xhr.responseType = "blob";
}
please delete :)