Library Manager - Download file

Posted by Community Admin on 03-Aug-2018 12:05

Library Manager - Download file

All Replies

Posted by Community Admin on 12-May-2011 00:00

Hi,
My requirement is -
i want a module where in admin can upload excel files.
and from website end user can download that excel file.
we are using sitefinity 4.0.
How should we go to achieve this?
currently i am trying the download code by using library manager
but not able to do this.
i am getting the error 'object reference not set to instance of an object' for the statement

 

 

LibraryManager libraryManager = new LibraryManager();

 


i have used the same in sitefinity 3.7. but facing error in 4.0
i have added the same dll - telerik.library from my exisiting 3.7 project


Need help....

Posted by Community Admin on 16-May-2011 00:00

Hello Anu,

       I do not believe that you could use your previous library manager from 3.7. I recommend  you to use the library manager from Sitefinity 4.0. You could get the manager  in the code like this :

Telerik.Sitefinity.Modules.Libraries.LibrariesManager.GetManager()

The uploading of the files could be done trough the sitefinity backend also . Then you could create a page and put the Download List control and select the proper library  from there to make the files available for public users.

All the best,
Teodor
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed