I see all these posts which talk about 'how to limit Django's imagefield to only accept certain file types' but I am yet to find a list of all the file types which Django's imagefield supports / doesn't support by default.
Is there a list of file types which Django's imagefield supports / doesn't support by default? Or does Django's imagefield allow any filetype to be submitted?
(Will django allow users to upload .pdf, .psd, .doc etc. files in an imagefield or will it raise an error?)
Django's ImageField
requires the third-party package Pillow (or PIL, but support is deprecated). It depends on these packages to verify that a file is indeed an image. This is not dependant on the file extension, but on the content of the file itself.
If you want to know if a certain type of file is supported, you should find out which version of Pillow/PIL you are using, and check the corresponding documentation.