Mercurial > eldonilo > avatar
comparison configuration.js.example @ 18:92d6e1b40df5
Move available extensions into configuration.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 10 Jul 2011 15:48:20 +0200 |
parents | 27eaec05cfd0 |
children | 9ff8f951da99 |
comparison
equal
deleted
inserted
replaced
17:32f7526da5fe | 18:92d6e1b40df5 |
---|---|
43 // workaround for buggy clients. | 43 // workaround for buggy clients. |
44 config.guessType = false; | 44 config.guessType = false; |
45 | 45 |
46 // Time after which the avatar will be retrieved again, in seconds. | 46 // Time after which the avatar will be retrieved again, in seconds. |
47 config.expire = 24*60*60; | 47 config.expire = 24*60*60; |
48 | |
49 // Allowed extensions, associated with their MIME type. | |
50 config.extensions = { | |
51 png: 'image/png', | |
52 svg: 'image/svg+xml', | |
53 jpg: 'image/jpeg', | |
54 gif: 'image/gif' | |
55 }; |