Page 1 of 1

JPG PNG

Posted: Fri Dec 27, 2019 10:02 am
by Kazann117

Good afternoon, tell me how I can programmatically insert a photo, for example, attachments to a contact or facebook, a window opens and you need to insert a picture on the machine.

Re: JPG PNG

Posted: Fri Dec 27, 2019 10:14 am
by salvadordf
Hi,

Search this in Google : html post image form

You will find examples like this one :
https://stackoverflow.com/questions/482 ... e-form-tag

Re: JPG PNG

Posted: Sun Dec 29, 2019 6:21 am
by Kazann117
Here is an example of what I want, is this possible?
Thank you very much for the answer.

Re: JPG PNG

Posted: Sun Dec 29, 2019 1:32 pm
by salvadordf
Yes, you can simulate a click on the browser or execute custom JavaScript code that calls the button's "click" method :
https://www.w3schools.com/jsref/met_html_click.asp

Use the TChromium.OnFileDialog event to replace the default file dialog. Read this message for more information about that event :
https://www.briskbard.com/forum/viewtop ... 715&p=3263