Closed Alezz1722 closed 3 years ago
do you have any idea how to solve it
There's no clientUrl anymore, now is something like deprecatedMms3Url. You have to modify your file objects/message.py
I did this and worked:
self.client_url = self._js_obj.get("clientUrl")
if not self.client_url:
self.client_url = self._js_obj["deprecatedMms3Url"]
I currently have the following codes to download multimedia files in js:
window.WAPI.downloadFile = function (msg, done) { let xhr = new XMLHttpRequest();
};
function getMediaFile(msg, callbackFunction) { window.WAPI.downloadFile(msg, function(result, message) { Store.CryptoLib.decryptE2EMedia(message.type, result, message.mediaKey, message.mimetype).then(function(a) { const reader = new FileReader();
}
When I try to download I get the following:
I don't know how to solve this problem, if you could help me or give me an idea of what to do, I would be very grateful.