Skip to content

Commit

Permalink
Upgrade to release v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Dec 16, 2014
1 parent 07dd731 commit 337da5c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,28 @@ The `previewTemplates` if not set will default to:
' </object>\n' +
' {footer}\n' +
'</div>',
other: '<div class="file-preview-frame" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + '>\n' +
other: '<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + '>\n' +
' ' + DEFAULT_PREVIEW + '\n' +
' {footer}\n' +
'</div>',
}
```

The values of the constants used in the above templates are as follows:

```
STYLE_SETTING = 'style="width:{width};height:{height};"',
OBJECT_PARAMS = ' &lt;param name="controller" value="true" />\n' +
' &lt;param name="allowFullScreen" value="true" />\n' +
' &lt;param name="allowScriptAccess" value="always" />\n' +
' &lt;param name="autoPlay" value="false" />\n' +
' &lt;param name="autoStart" value="false" />\n'+
' &lt;param name="quality" value="high" />\n',
DEFAULT_PREVIEW = '&lt;div class="file-preview-other">\n' +
' &lt;i class="glyphicon glyphicon-file">&lt;/i>\n' +
' &lt;/div>'
```

#### allowedFileTypes

_array_ the list of allowed file types for upload. This by default is set to null which means the plugin supports all file types for upload. If an
Expand Down Expand Up @@ -495,7 +510,7 @@ _object_ the format settings (width and height) for rendering each preview file
video: {width: "213px", height: "160px"},
audio: {width: "213px", height: "80px"},
flash: {width: "213px", height: "160px"},
object: {width: "213px", height: "160px"},
object: {width: "160px", height: "160px"},
other: {width: "160px", height: "160px"}
}
```
Expand Down

0 comments on commit 337da5c

Please sign in to comment.