Add other Types and change default
This commit is contained in:
parent
50a09dfe02
commit
421dc9b04f
1 changed files with 13 additions and 1 deletions
|
@ -5,6 +5,16 @@
|
||||||
|
|
||||||
Procedure.s mimetype(file.s)
|
Procedure.s mimetype(file.s)
|
||||||
Select file
|
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"
|
Case "png"
|
||||||
ProcedureReturn "image/png"
|
ProcedureReturn "image/png"
|
||||||
Case "gif"
|
Case "gif"
|
||||||
|
@ -21,12 +31,14 @@ Procedure.s mimetype(file.s)
|
||||||
ProcedureReturn "text/html"
|
ProcedureReturn "text/html"
|
||||||
Case "mss"
|
Case "mss"
|
||||||
ProcedureReturn "text/html"
|
ProcedureReturn "text/html"
|
||||||
|
Case "php"
|
||||||
|
ProcedureReturn "text/html"
|
||||||
Case "css"
|
Case "css"
|
||||||
ProcedureReturn "text/css"
|
ProcedureReturn "text/css"
|
||||||
Case "js"
|
Case "js"
|
||||||
ProcedureReturn "text/javascript"
|
ProcedureReturn "text/javascript"
|
||||||
Default
|
Default
|
||||||
ProcedureReturn "text/html"
|
ProcedureReturn "application/octet-stream"
|
||||||
EndSelect
|
EndSelect
|
||||||
EndProcedure
|
EndProcedure
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue