Add other Types and change default

This commit is contained in:
René Linder 2022-02-17 13:21:13 +01:00
parent 50a09dfe02
commit 421dc9b04f

View file

@ -5,6 +5,16 @@
Procedure.s mimetype(file.s)
Select file
Case "pdf"
ProcedureReturn "application/pdf"
Case "zip"
ProcedureReturn "application/zip"
Case "doc"
ProcedureReturn "application/msword"
Case "xls"
ProcedureReturn "application/vnd.ms-excel"
Case "ppt"
ProcedureReturn "application/vnd.ms-powerpoint"
Case "png"
ProcedureReturn "image/png"
Case "gif"
@ -21,12 +31,14 @@ Procedure.s mimetype(file.s)
ProcedureReturn "text/html"
Case "mss"
ProcedureReturn "text/html"
Case "php"
ProcedureReturn "text/html"
Case "css"
ProcedureReturn "text/css"
Case "js"
ProcedureReturn "text/javascript"
Default
ProcedureReturn "text/html"
ProcedureReturn "application/octet-stream"
EndSelect
EndProcedure