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...
Suggested Answer

How to upload an image file to a location on server

(1) ShareShare
ReportReport
Posted on by 449

Hello Everyone,

I am using "Business Central" On-Premises. And trying to upload image on a particular path on server.But i am unable to do so. Have used below function:

1. FileMgt.UploadFileToServer  >>File get save to default path(C:\ProgramData\Microsoft\Microsoft Dynamics NAV\150\Server\MicrosoftDynamicsNavServer$BC150\users\default\PDC), NOT on specified path.

2. File.Download   >>File gets downloaded to Downloads

3. DownloadFromStream  >>File gets downloaded to Downloads

Please suggest, how can i save file on a particular path on server.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Use the function UploadFileSilentToServerPath(ClientFilePath, ServerFilePath); from the FileMgt codeunit.

  • Manish Ratan Profile Picture
    449 on at

    Getting below issue, when using function UploadFileSilentToServerPath(ClientFilePath, ServerFilePath); from the FileMgt codeunit.

    "Sorry, this action is not available for the online version of the app".

    I am using "Business Central" On-Premises

  • Suggested answer
    Olister Rumao Profile Picture
    4,009 on at

    Hi Manish,

    Yes. Whatever Suresh has suggested will work for BC On-Premise(C/AL). You can create a function in C/AL which will be trigger from the AL Side.

    And this function will call UploadFileSilentToServerPath(ClientFilePath, ServerFilePath);

    Or a simply workaround is creating a table with BLOB field and upload your data to the BLOB.

    Refer github.com/.../Page 50102 Document Attachments.al

    Hope this helps.

  • Manish Ratan Profile Picture
    449 on at

    Getting issue with "BLOBImportWithFilter"

    "Sorry, this action is not available for the online version of the app".

    I am using "Business Central" On-Premises

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    What is the target you have specified in the app.json file? it should be OnPrem

    docs.microsoft.com/.../devenv-json-files

  • Manish Ratan Profile Picture
    449 on at

    Yes, I have set "target": "OnPrem"

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    What version are you on?

  • Manish Ratan Profile Picture
    449 on at

    Version 15

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    When do you get the above error, can you send the screenshot of it.

  • Manish Ratan Profile Picture
    449 on at

    IMG20200109204058.jpg

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