Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

JPG PNG

Post Reply
Kazann117
Posts: 41
Joined: Mon Jan 07, 2019 10:08 pm

JPG PNG

Post 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.
User avatar
salvadordf
Posts: 4572
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: JPG PNG

Post 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
Kazann117
Posts: 41
Joined: Mon Jan 07, 2019 10:08 pm

Re: JPG PNG

Post by Kazann117 »

Here is an example of what I want, is this possible?
Thank you very much for the answer.
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4572
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: JPG PNG

Post 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
Post Reply