Fix bad mime type for encrypted thumbnail

This commit is contained in:
Benoit Marty 2019-07-08 11:55:31 +02:00 committed by Benoit Marty
parent b73d3b15f8
commit e149ee53de

View file

@ -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)