API improvement get class ready extensions

List of extensions handled by a file class can be changed  by a
configuration so we need to get this extentions by file api.

Here's an example:
$uploadField->getValidator()->setAllowedExtensions(File::get_class_ready
_extensions('Image'));