This repository has been archived by the owner on Mar 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
App Crash when downloading PDF from PHP route URL #498
Labels
Comments
Same issue here, but trying to upload an image.
|
I have the same issue here while requesting an image. Did you guys found a workaround ?
|
I've found a solution, not perfect but it's working for me with base64 encoded PDF on Android & iOS: First, replace built-in fetch
And it's my method for downloading PDF (for Android you need to get write storage permission with PermissionsAndroid from RN) :
If you find a better way, please share it :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I try to download a dynamically generated PDF from a PHP API, so I do not have a ".pdf" in my url.
Here is the code (URL working via Postman) :
The application simply crash with just this information in the XCode console :
Has anyone ever had this problem?
I am in favor of any idea that can help me to solve this problem.
iOS testing version : 10.3
RN version : 0.39.2
RN-fetch-blob version : 0.10.8
Thanks in advance !
The text was updated successfully, but these errors were encountered: