Added file type validation.

e.g ['image/jpeg','image/gif']