Skip to content

Commit 337da5c

Browse files
committed
Upgrade to release v4.1.0
1 parent 07dd731 commit 337da5c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,28 @@ The `previewTemplates` if not set will default to:
437437
' </object>\n' +
438438
' {footer}\n' +
439439
'</div>',
440-
other: '<div class="file-preview-frame" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + '>\n' +
440+
other: '<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" ' + STYLE_SETTING + '>\n' +
441441
' ' + DEFAULT_PREVIEW + '\n' +
442442
' {footer}\n' +
443443
'</div>',
444444
}
445445
```
446446

447+
The values of the constants used in the above templates are as follows:
448+
449+
```
450+
STYLE_SETTING = 'style="width:{width};height:{height};"',
451+
OBJECT_PARAMS = ' &lt;param name="controller" value="true" />\n' +
452+
' &lt;param name="allowFullScreen" value="true" />\n' +
453+
' &lt;param name="allowScriptAccess" value="always" />\n' +
454+
' &lt;param name="autoPlay" value="false" />\n' +
455+
' &lt;param name="autoStart" value="false" />\n'+
456+
' &lt;param name="quality" value="high" />\n',
457+
DEFAULT_PREVIEW = '&lt;div class="file-preview-other">\n' +
458+
' &lt;i class="glyphicon glyphicon-file">&lt;/i>\n' +
459+
' &lt;/div>'
460+
```
461+
447462
#### allowedFileTypes
448463

449464
_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
@@ -495,7 +510,7 @@ _object_ the format settings (width and height) for rendering each preview file
495510
video: {width: "213px", height: "160px"},
496511
audio: {width: "213px", height: "80px"},
497512
flash: {width: "213px", height: "160px"},
498-
object: {width: "213px", height: "160px"},
513+
object: {width: "160px", height: "160px"},
499514
other: {width: "160px", height: "160px"}
500515
}
501516
```

0 commit comments

Comments
 (0)