/**
  * Checks if file has allowed extension in both source and target ResourceTypes
  *
  * @return bool true if file has allowed extension in source and target directories
  */
 public function hasAllowedExtension()
 {
     if (strpos($this->fileName, '.') === false) {
         return true;
     }
     $extension = $this->getExtension();
     return parent::hasAllowedExtension() && $this->targetFolder->getResourceType()->isAllowedExtension($extension);
 }