Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to see files on iOS, It shows just a grey screen with the file name on it. #31

Closed
BhavinHoum opened this issue Jul 23, 2021 · 5 comments

Comments

@BhavinHoum
Copy link

BhavinHoum commented Jul 23, 2021

9dNYF

@BhavinHoum BhavinHoum changed the title Just a grey screen with the file name on it. Not able to see files on iOS, It shows just a grey screen with the file name on it. Jul 23, 2021
@mostafa-mansour1
Copy link
Owner

mostafa-mansour1 commented Jul 23, 2021 via email

@HenokG
Copy link

HenokG commented Aug 2, 2021

I'm also facing the same issue, tried it with both name and mimeType but i still face this issue

window.PreviewAnyFile.previewPath( win => console.log("open status",win), error => console.error("open failed", error), $scope.document.url, {mimeType:'application/pdf', name: $scope.document.fileName} );

if it makes any difference, the url is from S3 bucket and i'm testing this on emulator

@mostafa-mansour1
Copy link
Owner

you are sure that name: $scope.document.fileName has the .pdf in the last?

@HenokG
Copy link

HenokG commented Aug 2, 2021

this soln helped me, i was using an encoded URL, i had to just update it to decodeURIComponent($scope.document.url)

@mostafa-mansour1
Copy link
Owner

thanks for sharing the solution with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants