Dear, I have just found the following inconvenience when sticking an image inside a ticket with the famous "paste" or "Ctrl + V" and is that according to the image relationship will hit or notfor example if it is a line only 1x10cm it gives error appearing a blue bar at the top of the screenbut if the same image tends to be a more square cut, 10x10cm this will work.blank

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.Environment details?Version of osTicket?

Hi ntozier, thank you very much for your answerI regret having forgotten the details of the environment, I am seeing how the rest I consult, so from now on I add it.The environment is as followsosTicket: v1.10.4 (035fd0a)OS: debian 7.7 wheezyweb server: apache2php: 5.6.37-1 ~ dotdeb + 7.1mysql: 5.5.60I did not find anyone scouting for the same, but I do not know if it's because it does not happen to them or because they never did the same testThank you very much

No worries. :)    All of that looks fine.Try attaching the image using the add an image button on compose bar.

@[deleted]Copy/paste does not work correctly sometimes (even worse on Windows). We are moving away from Redactor for many reasons including this one. In the meantime, you can simply Drag & Drop files/images.Cheers.

Thank you very much for your commentsI use "copy and paste" more than anything because with windows snipping tool I select a region, copy and paste inside the ticket.It seems to me something great and very fast. Much more practical than saving the capture and later attaching it as an imageI would get in touch if that could be maintained .., my knowledge of programming is "medium", I program microcontrolled in c, and some of it will understand that of web little and nothing.some knowledge of php and mysql I have, especially to read and understand code, if they need a hand I can get to read to try to solve the problem.Sometimes what is most needed is time.On the other hand, I add this log that appears when the error happens, detail that I happened to comment in the first initial post.Thank you very muchDB Error # 1062 Entrada duplicada '5317-496-D' para la clave 'file-type' ---- Backtrace - - # 0 (root) /include/mysqli.php (204): osTicket-> logDBError ('DB Error # 1062', '[INSERT INTO `o ...') # 1 (root) / include / class. orm.php (3136): db_query ('INSERT INTO` os ...', true, true) # 2 (root) /include/class.orm.php (597): MySqlExecutor-> execute () # 3 (root ) /include/class.attachment.php (161): VerySimpleModel-> save () # 4 (root) /include/ajax.draft.php (101): GenericAttachments-> upload (Array) # 5 (root) / include /ajax.draft.php(300): DraftAjaxAPI -> _ uploadInlineImage (Object (Draft)) # 6 : DraftAjaxAPI-> uploadInlineImage ('5317')# 7 (root) /include/class.dispatcher.php (145): call_user_func_array (Array, Array) # 8 (root) /include/class.dispatcher.php (38): UrlMatcher-> dispatch ('5317 / attach') , Array) # 9 (root) /include/class.dispatcher.php (120): Dispatcher-> resolve ('5317 / attach', Array) # 10 (root) /include/class.dispatcher.php (38): UrlMatcher-> dispatch ('/ draft / 5317 / att ...', NULL) # 11 (root) /scp/ajax.php (262): Dispatcher-> resolve ('/ draft / 5317 / att ...' ) # 12 {main}

@[deleted]I have noticed, Google Chrome works better and also, before you type anything in a new message box, paste works fine if you have some text on it already then paste does not work.

Hi,I have the same issue on Google Chrome, with database error : DB Error #1062 Duplicate entry '21980-7699-D' for key 'file-type' ---- Trace ---- #0 (racine)/include/mysqli.php(204): osTicket->logDBError('DB Error #1062', '[INSERT INTO `o...') #1 (racine)/include/class.orm.php(3136): db_query('INSERT INTO `os...', true, true) #2 (racine)/include/class.orm.php(597): MySqlExecutor->execute() #3 (racine)/include/class.attachment.php(161): VerySimpleModel->save() #4 (racine)/include/ajax.draft.php(101): GenericAttachments->upload(Array) #5 (racine)/include/ajax.draft.php(300): DraftAjaxAPI->_uploadInlineImage(Object(Draft)) #6 : DraftAjaxAPI->uploadInlineImage('21980') #7 (racine)/include/class.dispatcher.php(145): call_user_func_array(Array, Array) #8 (racine)/include/class.dispatcher.php(38): UrlMatcher->dispatch('21980/attach', Array) #9 (racine)/include/class.dispatcher.php(120): Dispatcher->resolve('21980/attach', Array) #10 (racine)/include/class.dispatcher.php(38): UrlMatcher->dispatch('/draft/21980/at...', NULL) #11 (racine)/scp/ajax.php(262): Dispatcher->resolve('/draft/21980/at...') #12 {main}

copy/paste doesn't work, drag and drop is ok, also add an image button.

informations:

version d'osTicket

v1.10.4 (035fd0a)

— Up to date

Logiciel serveur Web

Apache/2.4.7 (Ubuntu)

Version de MySQL

5.5.61

Version PHP

5.5.9-1ubuntu4.25OS : ubuntu 16.04 LTS

cheers

I use Chrome and have found paste works fine if you leave the caret at the end of a line of text then paste, but doesn't if you try to paste the image on a new line.  

Write a Reply...