Hi,
Do you mean you want to retrieve files stored in a folder in your NAS? There is a custom service broker you can try in the market. Not sure about dynamic paths, but if the path works from your K2 server, it should work for this service broker.
Thanks BoringNerd for the reply.
I think I can use this service broker to upload a file to that location, but before that I want to a create a folder structure based on certain IDs(Eg. Root/UserID/ArticleID/Files). I am looking for something like 'create folder' method which will create a folder with the ID inputs at that location. Please help.
The broker does appears to have a Create method with a 'FilePath' option:
I have not had a chance to test, but if the path does not exist, two things can happen:
1. It throws error
2. It creates the path
If it does not create the path, perhaps the broker can be extended with a create folder functionality as it does contain the sourcecode:
https://help.k2.com/onlinehelp/k2blackpearl/devref/4.7/default.htm#Custom_Service_Brokers.htm
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/file-system/how-to-create-a-file-or-folder