jQuery-File-Upload blueimp PHP-MySQL-database-update data

как внести изменения в «заголовок» данных и «описание» после загрузки изображения, например, добавить кнопку «изменить»?

Все это сделано и выполняется https://github.com/blueimp/jQuery-File-Upload/wiki/PHP-MySQL-database-integration

Вот мой код, но здесь нужно сделать новый метод «обновить» и синхронизировать его с html:

HTML:

name <br /><input name="title[]" value="{%=file.title||''%}"> description<br /> <input name="description[]" value="{%=file.description||''%}"> 

PHP:

 public function update($print_response = true) { $response = parent::update(false); foreach ($response as $name => $update) { if ($update) { $sql = 'update set `title`=? ,`description`=? ' .$this->options['db_table'].'` WHERE `name`=?'; $query = $this->db->prepare($sql); $query->bind_param('sss',$file->title,$file->description, $name); $query->execute(); } } return $this->generate_response($response, $print_response); } 

JS?