Content Asset Types

Salesforce B2C Commerce manages two types of content assets: content assets that are stored in the database and file assets that are stored in the file system.

Content assets are objects such as HTML blocks or text blocks that are stored in the database. File assets, such as images, audio, and video are represented by an entry in the database just like HTML or text content. In addition, file assets include a property for the path to the file on the file system. The file itself is stored within a folder, specified by the path, on disk. When replicating content, both the database content and file system files are copied to the Production instance. The reference between these two storage systems can't be broken into separate replication tasks.


For links, see Creating Content Asset Links.

Ask a developer to create content asset links.

You can reference external files within content asset HTML, but the actual file must be uploaded to the file system, such as the following:

https://[instancename][Library name],

where the Library name is the name of the library, currently a site name, for example SiteGenesis.

Upload non-html/text content asset files by selecting site > Content > Import & Export > Upload (Content Image Upload section). Navigate the content library tree structure to add new folders and files, and to replace or delete files. This structure enables you to use content assets that can be updated without requiring a code modification. When you upload a new .swf file (with a new name), for example, you must change the URL link in the content asset.

For example, you could add the following code to an HTML content asset to show the InStyle.jpg file:

<map name="instyle" id="instyle">
 <area shape="rect" coords="540,444,672,622" 
alt="Women's Margherite Cable Handbag" />
 <p><img width="750" height="715" alt=""
 usemap="#instyle"src="images/asSeenIn/InStyle.jpg?$staticlink$" />&nbsp;

Then you would load the InStyle.jpg file, as described previously, to the images/asSeenIn folder.

Streaming Video

B2C Commerce doesn't provide a streaming server. However, it does support download and play video, such as Flash, Windows Media, and QuickTime. For high-traffic storefront pages, the recommended storefront implementation approach is to:
  1. Download the container as part of initial page rendering.
  2. Download the video upon a user action such as clicking the Play button.
For heavy-use of streaming media, a high volume of download and play videos, or files greater than 20 MB, use a specialty third-party provider. In this case, use the absolute URL to the separately hosted rich media site.

Supported File Types

B2C Commerce supports the following file types.

File type Mime type Details
.abs audio/x-mpeg  
.ai application/postscript  
.aif audio/x-aiff  
.aifc audio/x-aiff  
.aiff audio/x-aiff  
.aim application/x-aim  
.art image/x-jg  
.asf video/x-ms-asf  
.asx video/x-ms-asf  
.au audio/basic  
.avi video/x-msvideo  
.avx video/x-rad-screenplay  
.bcpio application/x-bcpio  
.bin application/octet-stream  
.bmp image/bmp  
.body text/html  
.cdf application/x-cdf  
.cer application/x-x509-ca-cert  
.chm application/mshelp  
.class application/java  
.cpio application/x-cpio  
.csh application/x-csh  
.css text/css  
.dib image/bmp  
.dll application/octet-stream  
.doc application/msword  
.doc application/  
.dtd application/xml-dtd  
.dv video/x-dv  
.dvi application/x-dvi  
.eot font/eot  
.eps application/postscript  
.etx text/x-setext  
.ex_ application/octet-stream  
.exe application/octet-stream  
.gif image/gif  
.gtar application/x-gtar  
.gz application/x-gzip  
.hdf application/x-hdf  
.hqx application/mac-binhex40  
.htc text/x-component  
.htm text/html  
.html text/xtml  
.ico image/x-icon  
.ics text/calendar Enables internet users to send meeting requests and tasks to other internet users, via email. Opens in a corresponding application such as Outlook or iCal.
.ief image/ief  
.jad text/  
.jar application/java-archive  
.java text/plain  
.jhtml java-internal/java-html  
.jnlp application/x-java-jnlp-file  
.jpe image/jpeg  
.jpeg image/jpeg  
.jpg image/jpeg  
.js text/JavaScript You can include JavaScript code directly in a content asset or include an external JavaScript file.
.jsf text/plain  
.jsp java-internal/java-html/javascript  
.jspf text/plain  
.kar audio/x-midi  
.latex application/x-latex  
.log text/plain  
.m3u audio/x-mpegurl  
.m4a audio/mp  
.mac image/x-macpaint  
.man application/x-troff-man  
.mathml application/mathml+xml  
.me application/x-troff-me  
.mid audio/x-midi  
.midi audio/x-midi  
.mif application/x-mif  
.mov video/quicktime  
.movie video/x-sgi-movie  
.mp1 audio/x-mpeg  
.mp2 audio/x-mpeg  
.mp3 audio/x-mpeg  
.mp4 video/mp4 B2C Commerce multimedia format most commonly used to store video and audio, but can also be used to store other data such as subtitles and still images. See the Streaming video section.
.mpa audio/x-mpeg  
.mpe video/mpeg  
.mpeg video/mpeg  
.mpega audio/x-mpeg  
.mpg video/mpeg  
.mpv2 video/mpeg2  
.ms application/x-wais-source  
.nc application/x-netcdf  
.oda application/oda  
.odb application/vnd.oasis.opendocument.database OpenDocument Database
.odc application/vnd.oasis.opendocument.chart OpenDocument Chart
.odf application/vnd.oasis.opendocument.formula OpenDocument Formula
.odg application/ OpenDocument Drawing
.odi application/vnd.oasis.opendocument.image OpenDocument Image
.odm application/vnd.oasis.opendocument.text-master OpenDocument Main Document
.odp application/vnd.oasis.opendocument.presentation OpenDocument Presentation
.ods application/vnd.oasis.opendocument.spreadsheet OpenDocument Spreadsheet
.odt application/vnd.oasis.opendocument.text OpenDocument Text
.ogg application/ogg  
.ogv video/ogg The Ogg container format: can multiplex a number of independent streams for audio, video, text (such as subtitles), and metadata. See the Streaming video section.
.otg application/ OpenDocument Drawing Template
.oth application/vnd.oasis.opendocument.text-web HTML Document Template
.otp application/vnd.oasis.opendocument.presentation-template OpenDocument Presentation Template
.ots application/vnd.oasis.opendocument.spreadsheet-template OpenDocument Spreadsheet Template
.ott application/vnd.oasis.opendocument.text-template OpenDocument Text Template
.pbm image/x-portable-bitmap  
.pct image/pict  
.pdf application/pdf  
.pgm image/x-portable-graymap  
.pic image/pict  
.pict image/pict  
.pls audio/x-scpls  
.png image/png  
.pnm image/x-portable-anymap  
.pnt image/x-macpaint  
.ppm image/x-portable-pixmap  
.ppt application/powerpoint  
.ppt application/  
.ps application/postscript  
.psd image/x-photoshop  
.qt video/quicktime  
.qti image/x-quicktime  
.qtif image/x-quicktime  
.ras image/x-cmu-raster  
.rdf application/rdf+xml  
.rgb image/x-rgb  
.rm application/vnd.rn-realmedia  
.roff application/x-troff  
.rtf application/rtf  
.rtx text/richtext  
.sh application/x-sh  
.shar application/x-shar  
.shtml java-internal/parsed-html  
.sit application/x-stuffit  
.smf audio/x-midi  
.snd audio/basic  
.src application/x-wais-source  
.sv4cpio application/x-sv4cpio  
.sv4crc application/x-sv4crc  
.svg image/svg+xml  
.svgz image/svg+xml  
.swf application/x-shockwave-flash Adobe Flash file format: used for multimedia, vector graphics, and ActionScript.
.t application/x-troff  
.tar application/x-tar  
.tcl application/x-tcl  
.tex application/x-tex  
.texi application/x-texinfo  
.texinfo application/x-texinfo  
.tif image/tiff  
.tiff image/tiff  
.tr application/x-troff  
.tsv text/tab-separated-values  
.txt text/plain  
.ulw audio/basic  
.ustar application/x-ustar  
.vsd application/x-visio  
.vxml application/voicexml+xml  
.wav audio/x-wav  
.wbmp image/vnd.wap.wbmp Wireless Bitmap
.webm video/webm Audio-video container format that provides royalty-free, open video compression for use with HTML5 video. See the Streaming video section.
.wml text/vnd.wap.wml WML Source: Wireless Markup Language (WML), based on XML, is a markup language intended for devices that implement the sltWireless Application Protocol (WAP).
.wmlc application/vnd.wap.wmlc Compiled WML
.wmls text/vnd.wap.wmlscript Script Source
.wmlscriptc application/vnd.wap.wmlscriptc WML Script
.wmv video/x-ms-wmv  
.woff application/font-woff, application/x-font-woff, font/woff Not yet an official W3C standard. The W3C Candidate Recommendation for Woff was filed on 04 August 2011, and isn't yet approved by the W3C consortium. When approved, the official MIME type will be application/font-woff.
.wrl x-world/x-vrml  
.wspolicy application/wspolicy+xml  
.xbm image/x-xbitmap  
.xht application/xhtml+xml  
.xhtml application/xhtml+xml  
.xls application/  
.xml application/xml  
.xpm image/x-xpixmap  
.xsl application/xml  
.xslt application/xslt+xml  
.xul application/vnd.mozilla.xul+xml  
.xwd image/x-xwindowdump  
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.