Add allowedExtensions for file type