Hi Guys, I use cef with web.whatsapp.com but when I try to download a file the save popup doesn't appear to save the file.
I tested it on SimpleBrowser and I had the same behavior.
Some idea to help me?
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.
Download files with web.whatsapp.com
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Download files with web.whatsapp.com
Hi,
I tried to download 2 files from WhatsApp messages with the latest CEF4Delphi version.
Image downloads work correctly but video downloads fail.
I used the CEF binaries from Spotify without proprietary codecs.
WhatsApp requires building the CEF binaries with proprietary codecs in order to upload videos so my guess is that you probably need them for downloads too, but I haven't tried this.
I tried to download 2 files from WhatsApp messages with the latest CEF4Delphi version.
Image downloads work correctly but video downloads fail.
I used the CEF binaries from Spotify without proprietary codecs.
WhatsApp requires building the CEF binaries with proprietary codecs in order to upload videos so my guess is that you probably need them for downloads too, but I haven't tried this.
-
- Posts: 52
- Joined: Sat Dec 09, 2017 4:40 pm
Re: Download files with web.whatsapp.com
Hi salvador, I am trying to download a pdf file with SimpleBrowser and I already use cef recompiled with the video codecs.
I tried to download an image and it didn't work either.
I am using CEF 4389 build.
I tried to download an image and it didn't work either.
I am using CEF 4389 build.
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Download files with web.whatsapp.com
Try disabling the PDF extension to see if CEF starts downloading the file. Set GlobalCEFApp.DisablePDFExtension to True.
If CEF 4389 has issues downloading WhatsApp images try upgrading to the latest CEF4Delphi version.
If CEF 4389 has issues downloading WhatsApp images try upgrading to the latest CEF4Delphi version.
-
- Posts: 52
- Joined: Sat Dec 09, 2017 4:40 pm
Re: Download files with web.whatsapp.com
salvador, I tested with MiniBrowser. MiniBrowser downloads and save the file automatically in my documents folder without opening the "save as" window.
Some idea?
Some idea?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Download files with web.whatsapp.com
Perhaps the TChromium.OnBeforeDownload event is not used. All downloads are caceled by default unless you use TChromium.OnBeforeDownload.
Read this for more information :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=1736
Read this for more information :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=1736
-
- Posts: 52
- Joined: Sat Dec 09, 2017 4:40 pm
Re: Download files with web.whatsapp.com
Yes, now it worked. Thanks.