Hi.When pasting an image to osTicket we get the following error. Can it be corrected?Duplicate entry '40662-20954-D' for key 'file-type'<br

/> <br />---- Backtrace ----<br />#0 (root)/include/mysqli.php(204):

osTicket->logDBError('DB Error #1062', '[INSERT INTO `o...')<br />#1 (root)/include/class.orm.php(3133): db_query('INSERT

INTO `os...', true, true)<br />#2 (root)/include/class.orm.php(597):

MySqlExecutor->execute()<br />#3 (root)/include/class.attachment.php(161):

VerySimpleModel->save()<br />#4 (root)/include/ajax.draft.php(101):

GenericAttachments->upload(Array)<br />#5 (root)/include/ajax.draft.php(300):

DraftAjaxAPI->_uploadInlineImage(Object(Draft))<br />#6 :

DraftAjaxAPI->uploadInlineImage('40662')<br />#7 (root)/include/class.dispatcher.php(145):

call_user_func_array(Array, Array)<br />#8 (root)/include/class.dispatcher.php(38):

UrlMatcher->dispatch('40662/attach', Array)<br />#9 (root)/include/class.dispatcher.php(120):

Dispatcher->resolve('40662/attach', Array)<br />#10 (root)/include/class.dispatcher.php(38):

UrlMatcher->dispatch('/draft/40662/at...', NULL)<br />#11 (root)/scp/ajax.php(262):

Dispatcher->resolve('/draft/40662/at...')<br />#12 {main}

Please see:https://github.com/osTicket/osTicket/search?q=paste+image&type=Issues

Write a Reply...