92lleo / WhatsappWebToGo

[android] WhatsApp Web client for your phone/tablet with media support
https://f-droid.org/packages/io.kuenzler.whatsappwebtogo
MIT License
264 stars 43 forks source link

Downloaded media filename #82

Open Greyf29 opened 1 year ago

Greyf29 commented 1 year ago

Hello, is there any way to make WhatsappWebToGo download a media and save the filename as is?

Right now WhatsappWebToGo seems to download and then rename the file into a format such as WAWTG_YYYYMMDD-HHmmSS.pdf / jpg Year, month, date, hour, minute, second

If it's not too much trouble, I think it'd be optimal if it were to download the media with the original filename as it was sent to us / received.

Thank you for your time.

Greyf29 commented 1 year ago

Also cannot seem to download .xlsx (ms excel) file somehow.

92lleo commented 1 year ago

Hi @Greyf29 thanks for your feedback! The way the download currently works is a bit hacky; I don't have the info about the file name or the extension/file type. So I opted for the current datetime as filename, the file type /ext is determined by a lookup table from the mimeType of the file, so it can be wrong in certain cases. I'll look into the excel file issue