Mercurial > eldonilo > avatar
diff 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 |
line wrap: on
line diff
--- a/configuration.js.example +++ b/configuration.js.example @@ -45,3 +45,11 @@ config.guessType = false; // Time after which the avatar will be retrieved again, in seconds. config.expire = 24*60*60; + +// Allowed extensions, associated with their MIME type. +config.extensions = { + png: 'image/png', + svg: 'image/svg+xml', + jpg: 'image/jpeg', + gif: 'image/gif' +};