Added basic checks for file type
Although I failed to do an actual file type check with mimetypes or
python-magic in views.py