-
Stepan Salenikovich authored
There are a few issues with filtering by the file name extension: - more than just .jpg and .png are supported; svg images and other formats work as well - on GNU/Linux, the file extension does not dictate the file type; you can rename a .svg to .jpg and it will still work correctly - many file types have multiple extension names, eg: .jpeg or .JPG There is also no need to filter by the name, because if the file type is not supported, it will simply not work if the user tries selecting it as the avatar image and a simple warning will be logged. Change-Id: If7c95b8bbcbf4c45ac02c43a7788d5a7915b2670 Reviewed-by: Nicolas Jäger <nicolas.jager@savoirfairelinux.com>
3d1add6f