pass omitFilename to stop sending filename=undefined

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-15 10:27:39 +01:00
parent 826df5765c
commit da93c6d040
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

View File

@ -243,6 +243,7 @@ function uploadFile(matrixClient, roomId, file, progressHandler) {
const blob = new Blob([encryptResult.data]);
return matrixClient.uploadContent(blob, {
progressHandler: progressHandler,
omitFilename: true,
}).then(function(url) {
// If the attachment is encrypted then bundle the URL along
// with the information needed to decrypt the attachment and