Fix opening documents on Android (#2425)
This commit is contained in:
parent
1b836940f2
commit
f2e13c8887
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue