How can I browse a file from client then upload to server by using AL?

wolfskinwolfskin Posts: 42Member
Hi everyone,

In C/AL, I used CopyServerFile function in Codeunit "File Management" but it's not work in A/L.
an error occurs like this Error:The type or method 'CopyServerFile' cannot be used for 'Extension' development.
So, there is another way to browse a file from client then upload it to server?


Thanks,

Answers

  • Developer101Developer101 Posts: 295Member
    Use streaming functions
    United Kingdom
  • Developer101Developer101 Posts: 295Member
    are you using 365 BC on cloud?
    United Kingdom
  • wolfskinwolfskin Posts: 42Member
    are you using 365 BC on cloud?

    Dynamics NAV 2018 on premise and implement by extension.
  • Developer101Developer101 Posts: 295Member
    Use streaming functions and see if it works
    United Kingdom
  • SanderDkSanderDk Posts: 136Member
    You can also set your target in app.json to internal and use CopyServerFile from codeunit 419.
    For help, do not use PM, but use forum instead, perhaps other people have the same question, or better answers.
Sign In or Register to comment.