changed source_file_path to source_file
added check for the file content type
added white list mechanism