forked from GitHub-Mirror/riotX-android
Fix bad mime type for encrypted thumbnail
This commit is contained in:
parent
b73d3b15f8
commit
e149ee53de
@ -86,7 +86,7 @@ internal class UploadContentWorker(context: Context, params: WorkerParameters) :
|
||||
uploadedThumbnailEncryptedFileInfo = encryptionResult.encryptedFileInfo
|
||||
|
||||
fileUploader
|
||||
.uploadByteArray(encryptionResult.encryptedByteArray, "thumb_${attachment.name}", thumbnailData.mimeType)
|
||||
.uploadByteArray(encryptionResult.encryptedByteArray, "thumb_${attachment.name}", "application/octet-stream")
|
||||
} else {
|
||||
fileUploader
|
||||
.uploadByteArray(thumbnailData.bytes, "thumb_${attachment.name}", thumbnailData.mimeType)
|
||||
|
Loading…
Reference in New Issue
Block a user