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
bug: File downloads not working #6886
Comments
Don't think its perfect but somehow i managed to do it like this:
|
@izeryab But this is still saving files to the Android app data system directory. I want user download not background file saving. |
closing as duplicate of #5478 You can use |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
Current Behavior
If you click on the button that should initialize the download, nothing happens. The android debugger does not show any errors.
Expected Behavior
The user should be prompted to save the file to the downloads folder. Exactly how you would download a file from a website in a browser.
Code Reproduction
Other Technical Details
npm --version
output: 9.6.7node --version
output: v18.17.1pod --version
output (iOS issues only):Additional Context
What I basically want to achieve is that the user can export the data of the app to a json file so the user can back up data or use it for data analysis. I checked, it is not a problem of the libary
FileSaver
I am using. The native js way with creating ana
element to download a text file is also not working.The text was updated successfully, but these errors were encountered: