Add support for rar extraction

This commit is contained in:
Ben Adrian Sarmiento
2024-06-05 09:20:40 +02:00
parent f977abc052
commit 62e6143e06
9 changed files with 112 additions and 46 deletions

View File

@@ -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"
}