ECMS File & Image Libraries

From NewHaven Software Wiki
Jump to navigationJump to search

File names

  • Make sure that the file extension (.jpg, .pdf) is in all lowercase letters. Some areas of the admin use the extension to check the file type, and since the server is case-sensitive, uppercase letters will cause a mismatch.
  • Remove any special characters (such as '%','@','&') from the image name before uploading. These are generally reserved characters in HTML, PHP, Smarty, or SQL, and are not allowed as part of a file name.
  • Replacing spaces with an underscore (_) helps your filenames from look like this:
  http://www.newhavensoftware.com/images/2010_Catalog_Page_1.jpg

instead of like this:

  http://www.newhavensoftware.com/images/2010%20Catalog%20Page%201.jpg

Allowed file types

The following file types are allowed in the eCMS File Library (file types allowed in the Image Library are specifically labeled).

File extension Description Image Library?
css Cascading Style Sheets  
csv Comma-Separated Values  
doc Microsoft Word Document  
flv Flash Video File  
gif CompuServe GIF Image Yes
ico Windows Icon Yes
jpg JPEG Image Yes
js JavaScript Source Code  
mid MIDI Music  
midi MIDI Music  
mov QuickTime Movie  
mp3 MPEG Audio Layer 3 File  
mp4 Mpeg-4 Video  
pdf Portable Document Format  
png Portable Network Graphics Image Yes
swf Shockwave Flash  
ttf TrueType Font  
wav Windows Waveform Sound  
wmv Windows Media Video  
xls Microsoft Excel Worksheet  
zip ZIP Archive