if(!user_access('bypass input data check')&&!valid_input_data($file)){
watchdog('security',t('The file %file has not been saved, because it may contain a possible attempt to exploit or abuse this system.',array('%file'=>theme('placeholder',$source))),WATCHDOG_WARNING);
drupal_set_message(t('The file %file has not been saved, because it contains invalid data.',array('%file'=>theme('placeholder',$source))),'error');