How can I browse a file from client then upload to server by using AL?
wolfskin
Member Posts: 84
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,
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,
0
Best Answers
-
Use streaming functions and see if it worksUnited Kingdom5
-
I have been trying to use UPLOADINTOSTREAM function. It's work but I don't know where the file is located.
Can anyone guild me how do I get the uploaded file?
Thanks,0 -
When you uploadintostream the data is in your stream, not in a file.
you need to work with your stream instead
https://docs.microsoft.com/en-us/dynamics-nav/instreamFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.5
Answers
-
Use streaming functionsUnited Kingdom0
-
are you using 365 BC on cloud?United Kingdom0
-
Developer101 wrote: »are you using 365 BC on cloud?
Dynamics NAV 2018 on premise and implement by extension.0 -
Use streaming functions and see if it worksUnited Kingdom5
-
You can also set your target in app.json to internal and use CopyServerFile from codeunit 419.
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.1 -
I have been trying to use UPLOADINTOSTREAM function. It's work but I don't know where the file is located.
Can anyone guild me how do I get the uploaded file?
Thanks,0 -
When you uploadintostream the data is in your stream, not in a file.
you need to work with your stream instead
https://docs.microsoft.com/en-us/dynamics-nav/instreamFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.5 -
When you uploadintostream the data is in your stream, not in a file.
you need to work with your stream instead
https://docs.microsoft.com/en-us/dynamics-nav/instream
Thank you for your reply. Now I use DOWNLOADFROMSTREAM function to locate the file from stream.
Thank you very much,0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

