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.

Upload with js

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Upload with js

Post by salvadordf »

Hi,

Add your code to the MiniBrowser demo and check the console inside the inspector. It may have an error message about the javascript code.

Remember that If you need more advanced JS integration you can read this :
https://bitbucket.org/chromiumembedded/ ... gration.md

The demos in the JavaScript folder have all the examples in that document :
https://github.com/salvadordf/CEF4Delph ... JavaScript

For more information about sending files using Javascript read these pages :
https://stackoverflow.com/questions/985 ... javascript
https://stackoverflow.com/questions/558 ... pload-file
https://stackoverflow.com/questions/166 ... chronously
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Upload with js

Post by salvadordf »

Perhaps there's something missing in the HTML from.

Create a simple HTML form to send the contents of an INPUT element to the server and test it in a regular web browser.

When you can make it work in a regular web browser then try to use javascript with a CEF4Delphi browser.
Post Reply