Skip to content

Commit

Permalink
Fix opening documents on Android (#2425)
Browse files Browse the repository at this point in the history
  • Loading branch information
enahum authored Dec 6, 2018
1 parent 1b83694 commit f2e13c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f2e13c8

Please sign in to comment.