VagishVela / ChitChat

A native Mac app wrapper for WhatsApp Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inability to add profile photo

mirfilip opened this issue · comments

this is a copy of the original issue

Hi,
going to Profile & Status there seem to be an ability to add a profile photo. There is an upload photo button when you click on the photo placeholder. Then "To upload media, drag and drop the file into the WhatsApp Web window." dialog appears. When you try to drag & drop the photo there - nothing happens.

I found out the issues is somewhat mentioned in the readme:

Media uploading is supported when dragging the image/video file into the app's window. Uploading using the upload button is currently not supported, since WKWebView provides no easy mechanism for using tags.

Still, drag & drop doesn't seem to work there.

commented

yes correct this isn't working there.
not sure if you can do this on web whatsapp...

@c-o-m-m-a-n-d-e-r Right, I'm still forgetting to check if it works in web whatsapp :)

So:

  • [Chrome 49.0.2623.87] uploading via drap&drop doesn't work
  • [Chrome 49.0.2623.87] uploading via upload button does indeed work
  • [Safari 9.1 (11601.5.17.1)] uploading via drap&drop doesn't work
  • [Safari 9.1 (11601.5.17.1)] uploading via upload button does indeed work

So if "Uploading using the upload button is currently not supported, since WKWebView provides no easy mechanism for using tags." still holds true, then I don't think there is any way to add the photo. Maybe we should clear this out in "supported features" table.

commented

thx for your check ... so if its supported generally we can try to implement this in the wrapper ...
i believe we can work with base64 encoded data or something else and paste it into the webviews form ...