Skip to content

bug: Filesystem.downloadFile downloads file to my ~/Downloads folder #1716

@muuvmuuv

Description

@muuvmuuv

Bug Report

Is this intended?

Capacitor Version

PASTE OUTPUT HERE

Platform(s)

Current Behavior

This downloads the file to my local computers downloads folder instead of the path I have given.

    const options: DownloadFileOptions = {
      url,
      headers: this.defaultHeaders,
      directory: Directory.Data,
      path: `${path}/${filename}`,
      progress: true,
    }

    try {
      const response = await Filesystem.downloadFile(options)
.....

Expected Behavior

Code Reproduction

https://github.com/muuvmuuv/Issues-Ionic-Angular

  • Open tab 6780

I am uploading it rn

Other Technical Details

npm --version output:

node --version output:

pod --version output (iOS issues only):

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions