Add support for rar extraction
This commit is contained in:
@@ -81,6 +81,16 @@ func getContentMimeType(filePath string) string {
|
||||
return "application/zip"
|
||||
case ".txt":
|
||||
return "text/plain"
|
||||
case ".srt":
|
||||
return "text/srt"
|
||||
case ".jpg":
|
||||
return "image/jpeg"
|
||||
case ".png":
|
||||
return "image/png"
|
||||
case ".gif":
|
||||
return "image/gif"
|
||||
case ".webp":
|
||||
return "image/webp"
|
||||
default:
|
||||
return "application/octet-stream"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user