ConfigurationImage and Document Managers

Image and Document Managers

Image and Document Managers

Uploaded documents and images are stored in the folder which is specified in the 'web.config' file of the backoffice (you can read about it in this chapter).
You can manage the images and documents not only through the 'Image Manager' or 'Document Manager' but also via FTP.
The same image or a document can be added to the different content items. 
When a content item is deleted, the related image or document will stay on the server.

By default the maximum size of an image or a document allowed is 20 Mb.

Supported image types are: *.gif, *.png, *.jpg, *.jpe, *.jpeg, *.bmp.

Supported document types are: *.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf.

In order to specify the path to the image and document storage please complete next steps:

  • Open the 'web.config' file of the 'Sana.Commerce.BackOffice' project in VS2008;
  • Locate the 'appSettings' configuration section:

    <appSettings>
        <add key="FrontendUrl" value="#FRONTENDURL#"/>
        <add key="FrontendThumbnailPath" value="#PATH TO THUMBNAIL#"/>
        <add key="FrontendImagesContentPath" value="#PATH TO IMAGES AND DOCUMENTS#"/>
        <add key="ThemesContentFolder" value="..\Sana.Commerce.Startersite\content\images\Themes"/>
    </appSettings>

    The attributes are described in the table below:

    Attribute Description
    FrontendThumbnailPath Specifies the path to the folder which is used for storing the product images. The value can be for example:
    "/content/images/ProductImages/Small/"
    FrontendImagesContentPath Specifies the folder which is used for storing the content images and documents. The value can be for example: "/content/images/content"
    ThemesContentFolder Specifies the folder which is used for storing the themes for the website.

    Please make sure that these folders can be reached at the #FRONTENDURL# specified above.
  • Replace the #FRONTENDURL# tag, which should have the following form:
    "#PROTOCOL#://#WEBSITEDOMAINNAME#:#PORT#"

    where:
    #PROTOCOL#: the protocol which is used for connecting to the SC website (HTTP or HTTPS)
    #WEBSITEDOMAINNAME#: the website address that is registered in the DNS servers of your network.
    #PORT# (optional): the port number when it is not the default HTTP port number (80).
ConfigurationImage and Document Managers