FIX: check file type in simple upload library
Merge pull request #22 from alaa13212/fix-errors

FIX: check file type in simple upload library