Upload DWG or DXF file in M-Files using C#

I try to upload PDF, DWG and DXF file in M-Files.
PDF files are showing perfect, but DXW and DXF showing corrupted.

After upload using those Upload id to create document in M-Files