Index: branches/5.2.x/core/kernel/utility/formatters/upload_formatter.php =================================================================== diff -u -N -r16513 -r16574 --- branches/5.2.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 16513) +++ branches/5.2.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 16574) @@ -1,6 +1,6 @@ DestinationPath && !isset($field_options['upload_dir']) ) { + $base_path = $this->Application->getUnitOption($object->Prefix, 'BasePath'); + $field_options['upload_dir'] = WRITEBALE_BASE . '/' . basename($base_path) . '/'; + } + } + + /** * Processes file uploads from form * * @param mixed $value @@ -71,11 +88,18 @@ } if ( is_array($value) && isset($value['tmp_ids']) ) { - // SWF Uploader - return $this->_processFlashUploader($value, $field_name, $object); + $ret = $this->_processFlashUploader($value, $field_name, $object); } + else { + $ret = $this->_processRegularUploader($value, $field_name, $object); + } - return $this->_processRegularUploader($value, $field_name, $object); + if ( getArrayValue($options, 'upload_dir') ) { + $this->DestinationPath = null; + $this->FullPath = null; + } + + return $ret; } /**