extract file extension from content-type when extension is missing
Merge pull request #1248 from hasghari/missing-extension

missing file extension