1WebCommon.contentType(3kaya) Kaya module referenceWebCommon.contentType(3kaya)
2
3
4
6 WebCommon::contentType - Get the content type of the file
7
9 String contentType( Uploaded file )
10
12 file A user-uploaded file
13
15 Returns the user-reported content type of the uploaded file (e.g.
16 text/plain , application/pdf or image/png ). Depending on the configuā
17 ration of the user's system, this information may not be completely
18 reliable, and of course a malicious user could deliberately give an
19 incorrect content type, so you may need to perform additional checks in
20 some circumstances.
21
23 Kaya standard library by Edwin Brady, Chris Morris and others
24 (kaya@kayalang.org). For further information see http://kayalang.org/
25
27 The Kaya standard library is free software; you can redistribute it
28 and/or modify it under the terms of the GNU Lesser General Public
29 License (version 2.1 or any later version) as published by the Free
30 Software Foundation.
31
33 WebCommon.Uploaded (3kaya)
34 WebCommon.allowFileUploads (3kaya)
35 WebCommon.originalName (3kaya)
36 WebCommon.tempPath (3kaya)
37
38
39
40Kaya December 2010 WebCommon.contentType(3kaya)