Restricting type of files in a Solid Pod

Can we restrict the type of files that can be added to a Solid Pod?. For example, only document files (pdf, word, excel) can be added.
Any help would be appreciable.

It can certainly be done, but you would need to write the filter yourself. In other words, make a custom upload form which only allows types of files you want.

Can the file filters(.pdf,.doc,*.jpg etc.) be set in the config files of Community Solid Server?

Probably. I recommend asking in the CSS Chat.