Fix opening documents on Android (#2425)

This commit is contained in:
Elias Nahum 2018-12-06 14:23:05 -03:00 committed by GitHub
parent 1b836940f2
commit f2e13c8887
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,7 +236,7 @@ export default class FileAttachmentDocument extends PureComponent {
OpenFile.openDoc([{
url: `${prefix}${path}`,
fileNameOptional: file.caption,
fileName: data.name,
fileName: encodeURI(data.name.split('.').slice(0, -1).join('.')),
fileType: data.extension,
cache: false,
}], (error) => {