More in this section

Forums / Developing with Sitefinity / Images & Documents stored in Folder

Images & Documents stored in Folder

6 posts, 0 answered
  1. Rob
    Rob avatar
    2 posts
    Registered:
    05 Feb 2008
    31 Jul 2008
    Link to this post
    According to my understanding, the images and document module store these files in the database.   Can these files be instead stored in a folder (such as the "~/files" directorory in the website)?

    Thanks!
    Rob
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    01 Aug 2008
    Link to this post
    Hello Rob,

    That is correct, all items uploaded through Images and Documents module are stored in the project database. If you want to use the file system you can use the file upload functionality available before the Images and Documents module.

    We have logged as a feature request to make Images and Documents module work with the file system some time ago, so we will discuss this feature again.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Mar
    Mar avatar
    8 posts
    Registered:
    04 Apr 2007
    12 Aug 2008
    Link to this post
    Hello,

    I am using DiscountASP.NET as my hosting provider.  I have created a site using Sitefinity community edition on my local development machine.  I then followed the steps in the KB article to upload my site to the production server.

    Everything else seems to be working except the Images and Documents module.  All the images show a Red X inside sitefinity administration console on the production server.  All my content pages that were using the image gallery module are showing Red X.

    I even tried uploading a photo directly and even that showed up as Red X as if sitefinity is not able to resolve the path correctly for these images. 

    Pratik
  4. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    12 Aug 2008
    Link to this post
    Hi Pratik,

    You cannot view/edit templates or view/upload/download images and documents because the ISAPI mappings for .sflb, .tmb and .template extensions are not set on your IIS virtual directory on the server. You need to ask Discount.AspNet to do that for you. Please refer them to section Configuring IIS of the Sitefinity User Manual or section Troubleshooting for details. 

    Don't forget to register the ContentHttpHandler handler for the extensions in the application web.config as well:
    <httpHandlers>  
        <add verb="GET" path="*.sflb" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine" />  
        <add verb="GET" path="*.tmb" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine" />  
    </httpHandlers> 

    Let us know if you need any further assistance.


    All the best,
    Rebecca
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Mar
    Mar avatar
    8 posts
    Registered:
    04 Apr 2007
    13 Aug 2008
    Link to this post

    Thank you very much for the prompt reply.  After DiscountASP.net added the ISAPI mappings, everythings seems to be working.  Some of the images though were still showing Red X.  I went into the administration section and re-added the images and they work.  This is pretty strange and I am not sure what may have caused it.

    Also, once I make these changes in the online database, how do I make sure that my development database is in sync, so next time, when I upload a revision, the previous changes performed by my client using the admin section are not overwritten.

    Pratik

  6. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    13 Aug 2008
    Link to this post
    Hello Pratik,

    The reason for some images still being shown as red X is most probably that those images were added at your local machine and then uploaded to the server. Please take a look at this thread for more information on this:
    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bdchhg.aspx. You will also find that there are two very simple queries that you can perform to fix all the issues caused by this problem.

    The only way to keep development and online database in sync is to manually add new tables and/or stored procedures to the online database directly and not to overwrite database once the website has gone live. Alternatively, if you use Nolics.NET which comes with Sitefinity you do not need to work with database at all, since Nolics.NET supports forward engineering of your data objects to the database.

    I hope you'll find this information helpful. Let us know if there is anything else we can do for you.

    Greetings,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
6 posts, 0 answered