web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to choose where to save a file

(0) ShareShare
ReportReport
Posted on by 10

On bc 17 using DownloadFromStream I'm downloading a file to the default folder of the browser. Already found out that the toFolder does not work in the Dynamics Nav Web Client.

My question is how can I make it pop up the windows for the user to choose where the file is going to be downloaded instead of being downloaded to the default browser 'downloads' location.

Thanks in advance!

I have the same question (0)
  • JAngle Profile Picture
    121 on at
    RE: How to choose where to save a file

    Cloud or onprem?

  • Bagatelli Profile Picture
    10 on at
    RE: How to choose where to save a file

    OnPrem

  • Verified answer
    steveendow Profile Picture
    2,281 on at
    RE: How to choose where to save a file

    It appears that it is not possible to specify the download / file save path via AL when using the web client.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/file/file-downloadfromstream-method

    "ToFolder:  This parameter is not supported by the web client. By default, files are saved to the default download location that is configured in the end-user's browser."

    It appears you have to manually configure the browser to ask for the save location and the user must choose the path manually.

    pastedimage1611593245979v1.png

    But if you are able to find a workaround to perhaps default the download path when the user is prompted, I'd be interested to know if that is possible.

  • Bagatelli Profile Picture
    10 on at
    RE: How to choose where to save a file

    Yeah, noticed that as well but I think I might have worded it wrong because want I want is for the save file dialog to open so the user can then choose the path after.

    Would have the same result as clicking with the right mouse and "Save link as".

    I tried with SaveFileDialog but without success.

    Thanks for the reply!

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,207 Super User 2025 Season 2 on at
    RE: How to choose where to save a file

    The pop up depends on the user browser preference. Go the the browser's setting and there will be option to ask where to save each file before downloading.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,255

#2
Sumit Singh Profile Picture

Sumit Singh 2,665

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,401

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans