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

Post Reply
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Download files with web.whatsapp.com

Post by alpires2000 »

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

Re: Download files with web.whatsapp.com

Post by salvadordf »

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.
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Re: Download files with web.whatsapp.com

Post by alpires2000 »

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

Re: Download files with web.whatsapp.com

Post by salvadordf »

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.
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Re: Download files with web.whatsapp.com

Post by alpires2000 »

salvador, I tested with MiniBrowser. MiniBrowser downloads and save the file automatically in my documents folder without opening the "save as" window.
Some idea?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Download files with web.whatsapp.com

Post by salvadordf »

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
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Re: Download files with web.whatsapp.com

Post by alpires2000 »

Yes, now it worked. Thanks.
Post Reply