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

[Bug]: Download file option not working #7292

Closed
1 of 3 tasks
vigneshsf3992 opened this issue Feb 27, 2024 · 3 comments
Closed
1 of 3 tasks

[Bug]: Download file option not working #7292

vigneshsf3992 opened this issue Feb 27, 2024 · 3 comments
Labels

Comments

@vigneshsf3992
Copy link

vigneshsf3992 commented Feb 27, 2024

Capacitor Version

Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 5.7.0
@capacitor/core: 5.7.0
@capacitor/android: 5.7.0
@capacitor/ios: 5.7.0

Installed Dependencies:

@capacitor/android: 5.7.0
@capacitor/cli: 5.7.0
@capacitor/ios: 5.7.0
@capacitor/core: 5.7.0

Other API Details

No response

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Download file not working

Expected Behavior

File needs to be downloaded.

Project Reproduction

React project

Additional Information

When i use the below code in react project. It's downloading.
When i click the Download button, the file was not downloading in androidstudio using capacitor.

<a href="sample.png" download="file">Download</a>

@jcesarmobile
Copy link
Member

closing as duplicate of #5478

You can use Filesystem's downloadFile method for downloading files with more control about were to place the files
https://capacitorjs.com/docs/apis/filesystem#downloadfile

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
@vigneshsf3992
Copy link
Author

Can you please provide simple react component with the mentioned usage?

Copy link

ionitron-bot bot commented Mar 28, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants