+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / PDFs and Images Storage in Sitefinity

PDFs and Images Storage in Sitefinity

8 posts, 0 answered
  1. Inna Young
    Inna Young avatar
    8 posts
    Registered:
    21 Jul 2009
    24 Jul 2009
    Link to this post
    We are designing a large website with lots of documents. What (and where) would be the most efficient way to store about 10 thousand PDFs and about the same amount of images?

     Files? If so, how do we upload those: one by one all 10 thousand? Since there is no unzip function....

    Images & Documents? If so, how do we avoid ending up with thousands of folders, since we need to post all the projects in a separate folder?
     
    Please advise.
     
    Inna
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Jul 2009
    Link to this post
    Hi Inna Young,

    You can create some grouping of the projects and use common libraries. Another option is filtering the libraries and reduce the list for a specific users. In this case you should create a custom module that inherits from Images and Documents with custom ObjectDataSource. You need to create a custom methot for GetAllLibraries with filter property. Also if you are going to upload large files, your database will grow up very quickly and you should consider your db size. You can upload all files on on server's folder instead of the database.
     
    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Tracy Lin
    Tracy Lin avatar
    2 posts
    Registered:
    24 Aug 2009
    24 Aug 2009
    Link to this post
    Hello Ivan,
    I'm wondering what types of images or documents should (have to) stay in the Library (for example images for galleries) and what can be stored in server folders. Thanks!

    Tracy
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    24 Aug 2009
    Link to this post
    Hi Tracy Lin,

    Generally you can store all files to your database if you have a dedicated server and enough free space.If you have some png images and txt files you can store then in the module ( respectively in the database). If you are going to upload high resolution images and thousands of large files as PDF manuals you should better store them to the file system.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Tracy Lin
    Tracy Lin avatar
    2 posts
    Registered:
    24 Aug 2009
    24 Aug 2009
    Link to this post
    Hi Ivan,
    Actually database size is a concern for this site we're working on so we're considering uploading most of the images/files to the file system. To my understanding, images for a photo gallery should stay in the Modules section. Are there other restrictions like this one? Can all the pdf files be stored in the file system even though they are to be used in one of the modules? Thanks!

    Tracy
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Aug 2009
    Link to this post
    Hello Tracy Lin,

    I would not consider this as restriction, but as an additional option. You can upload the files through Sitefinity backend and store the files to the file system. You can save the title to the database which will use only several kb, since the whole file will be located in your file system. This will allow you to manage all files through Sitefinity UI.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Kimbert Cattenhead
    Kimbert Cattenhead avatar
    1 posts
    Registered:
    21 Apr 2010
    11 May 2010
    Link to this post
    Hi Tracy
    <Libraries
     streamingProviderName="Files"
     streamingIsEnabled="True"
     ...


    Is this way you suggest the uploading of documents to the file system. This setting actually stores the files in app_data folder. Is there a way we can define the path as well?
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 May 2010
    Link to this post
    Hi Kimbert Cattenhead,

    The path can be changed if you override Telerik.Libraries.Data.FileSystem.FileSystemProvider  - BasePath property. For the next SP there will be a configuration property exposed that will allow you to switch the path.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
8 posts, 0 answered