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

Announcements

No record found.

News and Announcements icon
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!

  • JAngle Profile Picture
    161 on at

    Cloud or onprem?

  • Bagatelli Profile Picture
    10 on at

    OnPrem

  • Verified answer
    steveendow Profile Picture
    2,281 on at

    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

    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,306 Super User 2026 Season 1 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 665 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 418 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans