function _create_object_operation() { $this->object->set_attribute('files_data', $_FILES[$this->name]); if (($id = parent::_create_object_operation()) === false) { return false; } return $id; }
function _create_object_operation() { $this->object->set_attribute('files_data', $this->_get_uploaded_files_data()); if (($id = parent::_create_object_operation()) === false) { return false; } return $id; }
function _create_object_operation() { $file = $this->dataspace->get('file'); $this->object->set_attribute('tmp_file_path', $file['tmp_name']); $this->object->set_attribute('file_name', $file['name']); $this->object->set_attribute('mime_type', $file['type']); return parent::_create_object_operation(); }
function _create_object_operation(&$object) { $object->set_attribute('files_data', $_FILES[$this->name]); if (($id = parent::_create_object_operation(&$object)) === false) { return false; } $object->create_variations(); return $id; }
function _create_object_operation() { if (isset($_FILES[$this->name]['tmp_name']['file'])) { if ($_FILES[$this->name]['size']['file'] > ini_get('upload_max_filesize') * 1024 * 1024) { message_box::write_warning('uploaded file size exceeds limit'); return false; } $this->object->set_attribute('tmp_file_path', $_FILES[$this->name]['tmp_name']['file']); $this->object->set_attribute('file_name', $_FILES[$this->name]['name']['file']); $this->object->set_attribute('mime_type', $_FILES[$this->name]['type']['file']); } return parent::_create_object_operation(); }