File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
apps/files/src/components/FileEntry Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2121 class =" files-list__row-icon-blurhash"
2222 aria-hidden =" true" />
2323 <img v-if =" backgroundFailed !== true"
24+ :key =" source.fileid"
2425 ref =" previewImg"
2526 alt =" "
2627 class =" files-list__row-icon-preview"
@@ -147,6 +148,17 @@ export default defineComponent({
147148 return null
148149 }
149150
151+ if (this .source .attributes [' has-preview' ] !== true
152+ && this .source .mime !== undefined
153+ && this .source .mime !== ' application/octet-stream'
154+ ) {
155+ const previewUrl = generateUrl (' /core/mimeicon?mime={mime}' , {
156+ mime: this .source .mime ,
157+ })
158+ const url = new URL (window .location .origin + previewUrl )
159+ return url .href
160+ }
161+
150162 try {
151163 const previewUrl = this .source .attributes .previewUrl
152164 || (this .isPublic
You can’t perform that action at this time.
0 commit comments