mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
370d549a48
commit
f5b17b2b22
8 changed files with 8 additions and 21 deletions
|
|
@ -149,7 +149,7 @@ func RemoveID(name string) string {
|
|||
}
|
||||
|
||||
var commonSuffixes = []string{
|
||||
".jpg", ".jpeg", ".png", ".gif", ".bmp", ".svg", ".webp", ".tiff",
|
||||
".jpg", ".jpeg", ".png", ".gif", ".bmp", ".svg", ".webp", ".tif", ".tiff",
|
||||
".txt", ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".md", ".rtf",
|
||||
".zip", ".rar", ".7z", ".tar", ".gz", ".bz2",
|
||||
".mp3", ".wav", ".aac", ".flac", ".ogg", ".m4a",
|
||||
|
|
|
|||
|
|
@ -479,6 +479,7 @@ func initMime() {
|
|||
mime.AddExtensionType(".gif", "image/gif")
|
||||
mime.AddExtensionType(".bmp", "image/bmp")
|
||||
mime.AddExtensionType(".tiff", "image/tiff")
|
||||
mime.AddExtensionType(".tif", "image/tiff")
|
||||
mime.AddExtensionType(".webp", "image/webp")
|
||||
mime.AddExtensionType(".ico", "image/x-icon")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue