Drag and drop function

Hi, I wanted to know if possible, where the function dedicated to drag and drop image uploading on tickets is located ? and possibly how to allow other types of files such as pdf to be uploaded ?

thanks

This was implemented back in Janurary.

I’m aware of that, thank you, but I was asking about which function(s) are precisely in charge of this, because I’m having a hard time modifying it

Its a markdown editor (MDE) that converts the uploaded image to markdown text. Markdown doesn’t support PDFs inline. Its a third party plugin through codemirror that handles the image text conversation.