Can U restrict file types for upload into a document library?
Not Possible
Restrict only certain file types.
Restrict any file type by doing as below, Central administration page >Under operations > Blocked File Types and Add .extension of the file type
Restrict any file type by doing as below, Site setting >Under Gallery > Blocked File Types and Add .extension of the file type