/** * Performs the actual move for {@link _process_uploaded_file()}. * Can be called from {@link _prepare_for_commit()} in descendent forms to use * the same mechanisms for resolved overwrite options. * @param UPLOAD_FILE_FIELD $field File is associated with this field. * @param UPLOADED_FILE $file Move this file object. * @param string $path Move to this folder. * @param boolean $form_is_valid Will the form be committed? * @access private */ protected function _move_uploaded_file($field, $file, $path, $form_is_valid = true) { $file->move_to($path, $this->_upload_file_copy_mode($field, $file, $form_is_valid)); }