Fix issue
This commit is contained in:
parent
1ecaafff30
commit
acfc4582c9
5
main.js
5
main.js
@ -130,10 +130,11 @@ function getAndUploadFile(url, callback) {
|
|||||||
// upload
|
// upload
|
||||||
logger.info("Uploading MMS media to Matrix " + url);
|
logger.info("Uploading MMS media to Matrix " + url);
|
||||||
client.uploadContent(buffer, {
|
client.uploadContent(buffer, {
|
||||||
onlyContentUri: true
|
onlyContentUri: true,
|
||||||
|
rawResponse: false
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (typeof callback == "function") {
|
if (typeof callback == "function") {
|
||||||
callback(res);
|
callback(res.content_uri);
|
||||||
logger.info("Media URI: " + res);
|
logger.info("Media URI: " + res);
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user