You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a similar issue and I believe that the data is not sent as a post payload.
I have to use the patched window.fetch method to perform the post, convert the result to base64 and save manually since I'm using CapacitorHttp.
But the resulting pdf file is just blank pages.
@me-cedric Just a quick one, not sure if this applies to you or not - our endpoint is meant to send back a binary (octet-stream), but we ended up switching to CapacitorHttp.post() - when we did this, the response is coming back in base64 encoding - using atob() turns it back into the binary that we can see in Postman
Bug Report
Plugin(s)
Capacitor Version
Platform(s)
Android
Current Behavior
I've got the following code in place to download a file:
The code runs, doesn't appear to download anything and fails pretty much instantly, I get the following error on the console:
Expected Behavior
File should be downloaded
Code Reproduction
See above
Other Technical Details
Additional Context
The text was updated successfully, but these errors were encountered: