Page 1 of 1

Download files with web.whatsapp.com

Posted: Fri Jul 16, 2021 6:16 pm
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?

Re: Download files with web.whatsapp.com

Posted: Sat Jul 17, 2021 9:42 am
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.

Re: Download files with web.whatsapp.com

Posted: Sat Jul 17, 2021 11:51 am
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.

Re: Download files with web.whatsapp.com

Posted: Sat Jul 17, 2021 1:39 pm
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.

Re: Download files with web.whatsapp.com

Posted: Sun Jul 18, 2021 1:59 pm
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?

Re: Download files with web.whatsapp.com

Posted: Mon Jul 19, 2021 9:16 am
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

Re: Download files with web.whatsapp.com

Posted: Fri Jul 23, 2021 11:32 am
by alpires2000
Yes, now it worked. Thanks.