add validation of file type for uploading and corressponding test.
Merge pull request #3 from felixsoum/backend-dev

add validation of file type for uploading and corressponding test.