setting viewpath and upload path for document manager

4 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 13 Jul Link to this post

    i am following this guide

    i need the document manager to reference to a physical path instead of virtual path

    upon trying to integrate the example to my project, i receive the following error in CustomFileSystemProvider.cs.

    stating that 'System.IO.PathHelper' is inaccessible due to its protection level

     

    or is there another example for using physical path on DocumentManager?

  2. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 13 Jul Link to this post

    Hi i got it working. would like to check if there is a way for the mapping file to get the physical path from web.config?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 13 Jul in reply to Benjamin Link to this post

    or is there anyway i can pass values into the CustomFileSystemProvider?
  5. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 18 Jul Link to this post

    Hi,

    Thank you for contacting us.

    Regarding the passing of values to the CustomFileSystemProvider I found the following forum thread: Passing parameter to FileBrowserContentProvider.

    On your question "if there is a way for the mapping file to get the physical path from web.config", there is no direct way of doing so, but you can try generating it dynamically based on the web.config  settings, however currently we do not have such an example.

    Regards,
    Stanimir
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top