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

Forums / General Discussions / Files provider for Images and Documents

Files provider for Images and Documents

2 posts, 0 answered
  1. Nauman
    Nauman avatar
    35 posts
    Registered:
    28 Jul 2008
    25 Mar 2010
    Link to this post
    Hi

    I am trying to saving the file on the disk in the Images & Documents, i make modificaion in the web config Library provider as stated

    http://www.sitefinity.com/support/kb/sitefinity-3-x/how-to-enable-the-files-provider-for-images-and-documents-module-in-sitefinity-3-7-sp3.aspx

    My Library provider is in web config

    <add name="Libraries" streamingProviderName="Files" streamingIsEnabled="True" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb.ashx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="False" allowLocalization="True" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.DefaultProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx" />


    But it is not working and still saving the file in the database.


    Please suggest

    Thanks
    Nauman Ahmed
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Mar 2010
    Link to this post
    Hello Nauman,

    You have not modified the proper section. You should have modified <libraries> node of the web config as shown below

    <libraries defaultGenericProvider="Libraries" streamingProviderName="Files" streamingIsEnabled="True">
          <genericContentProviders>
            <add providerName="Libraries" publicationDateField="Publication_Date" />
          </genericContentProviders>
          <libraryInfo>
            <add name="Image" title="Image Library" defaultExtenstions=".png, .jpg, .jpeg, .gif" metaKeys="Author, AlternateText, Extension, Name, Height, Width, Size, Category"></add>
            <add name="Document" title="Document Library" defaultExtenstions=".doc, .docx, .rtf, .txt, .pdf, .ppt, .pps, .pptx, .html, .xls, .xlsx" metaKeys="Author, Description, Extension, Name, Size, Category"></add>
            <add name="Custom" title="Custom Library" defaultExtenstions=".*" metaKeys="Author, Description, Extension, Name, Size, Category"></add>
            <add name="Video" title="Video" defaultExtenstions=".wmv" metaKeys="Author, Extension, Name, Size, Category, Description"></add>
            <!-- Viddler can co-exists with other libraries-->
            <!--<add name="Viddler" title="Viddler Library" defaultExtenstions=".avi, .mpg, .mov, .wmv, .wma, .3gp" metaKeys="Author, Description, Extension, Name, Size, Category"></add>-->
          </libraryInfo>
          <!-- before using extensionMapping be you uncomment LibraryHttpModule in handlers and httpHandlers sections -->
          <extensionMapping defaultExtension=".sflb.ashx">
            <!--<add key=".jpg"/>
                    <add key=".pdf"/>
                    <add key=".csv"/>
                    <add key=".xls"/>-->
          </extensionMapping>
        </libraries>

    I hope that this helps

    All the best,
    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.
2 posts, 0 answered