Import and Manage Assets

Contributors, publishers, and site administrators can import a variety of assets, such as images, HTML pages, and PDFs, to use in a website. You can import assets and files individually, or use a zipped file. When importing entire websites or large numbers of assets, it’s easier to create a zipped file of the content with the desired folder structure. When importing the zipped file for a website, Site.com recreates your website and places everything in the same folder structure.

Required Editions

Available in: Salesforce Classic

Available for purchase in: Enterprise, Performance, and Unlimited Editions

Available (with limitations) in: Developer Edition

User Permissions Needed
To build, edit, and manage Site.com sites:

Site.com Publisher User field enabled on the user detail page

AND

Site administrator or designer role assigned at the site level

To edit only content in Site.com sites:

Site.com Contributor User

AND

Contributor role assigned at the site level

Note
Note The maximum file size you can import is 50 MB unless you import and unzip a .zip file. In that case, you can import a .zip file of up to 200 MB if you select Unzip files during the import process.

The quickest way to import one or more files is to:

  1. Select the files from your computer and drag them directly onto the Studio interface. This is supported for Mozilla® Firefox® and Google® Chrome only. You can drag individual files, or a zipped file.
  2. Depending on the types of files you’re importing, a dialog box can appear that lets you:
    • Select Unzip files to extract the contents of a .zip file. If the .zip file includes folders, this structure is maintained in your site.
    • Select Overwrite existing files to replace a file that exists in the site.
    • Select Convert CSS files into style sheets, if you're a site administrator or designer, to convert a CSS file into a style sheet that you can use to style your website.
      Note
      Note If you import a .zip file that includes CSS files, and they fail to convert, they aren’t valid. Try unchecking this option and then reimporting the .zip file.
    • Select Convert HTML files into pages to import HTML pages into your website. The structure of the HTML page is maintained in your site, but the HTML is not validated during import.

Alternatively, to import a single file:

  1. Click Import....
  2. Click Browse... to locate the file.
  3. Select the file and click Open.
  4. Depending on the type of file you’re importing, you can:
    • Select Unzip files to extract the contents of a .zip file. If the .zip file includes folders, this structure is maintained in your site.
    • Select Overwrite existing files to replace a file that exists in the site.
    • Select Convert CSS files into style sheets, if you're a site administrator or designer, to convert a CSS file into a style sheet that you can use to style your website.
      Note
      Note If you import a .zip file that includes CSS files, and they fail to convert, they aren’t valid. Try unchecking this option and then reimporting the .zip file.
    • Select Convert HTML files into pages to import HTML pages into your website. The structure of the HTML page is maintained in your site, but the HTML is not validated during import.
  5. Click Import. A message appears indicating whether the file was imported successfully.
  6. Click Close.

You can add images and videos to the text areas of your site pages, or create a hyperlink to any imported asset. If you're a site administrator or designer, you can add also add images directly to the page.

View the list of imported assets in the Assets view on the Overview tab. You can also access assets in the All Site Content view, which displays the folder hierarchy of your site.

  • To view a thumbnail of an imported image, hover over it.
  • To save an asset to your computer, hover over or select it and click Actions | Download.
  • To remove an asset from your site if you're a site administrator or designer, hover over or select it and click Actions | Delete. If the asset is being used in your site, you see a confirmation message with a list of locations where that asset is in use. After an asset file is deleted, it exists in the Salesforce cache for up to 24 hours. After this period it is permanently deleted from our systems.
    Note
    Note An asset can still be accessible if it's cached locally by a browser, or cached by an external system.
  • To rename an asset on your site if you're a site administrator or designer, hover over the asset and click Actions | Rename.
  • Export Assets
    Designers and site administrators can export all site assets separately from the .site file. You can export assets together or individually.
  • Creating and Managing Folders
    As a site administrator or designer, you can create folders to manage your pages, style sheets, templates, and assets.