Index: branches/5.1.x/core/kernel/utility/formatters/upload_formatter.php =================================================================== diff -u -N -r13086 -r13569 --- branches/5.1.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 13086) +++ branches/5.1.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 13569) @@ -1,6 +1,6 @@ fileHelper =& $this->Application->recallObject('FileHelper'); + if ($this->DestinationPath) { $this->FullPath = FULL_PATH.$this->DestinationPath; } } - /** * Processes file uploads from form * @@ -45,6 +53,8 @@ $this->FullPath = FULL_PATH.$this->DestinationPath; } + $this->fileHelper->CheckFolder($this->FullPath); + // SWF Uploader if (is_array($value) && isset($value['tmp_ids'])) { if ($value['tmp_deleted']) { @@ -314,12 +324,10 @@ return $new_name; } - } class kPictureFormatter extends kUploadFormatter { - function kPictureFormatter() { $this->NakeLookupPath = IMAGES_PATH; // used ? @@ -340,5 +348,4 @@ return parent::GetFormatted($value, $field_name, $object, $format); } - } \ No newline at end of file