VagishVela / ChitChat

A native Mac app wrapper for WhatsApp Web
MIT License
54 stars 12 forks source link

Inability to add profile photo #32

Open mirfilip opened 8 years ago

mirfilip commented 8 years ago

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.

c-o-m-m-a-n-d-e-r commented 8 years ago

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

mirfilip commented 8 years ago

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

So:

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.

c-o-m-m-a-n-d-e-r commented 8 years ago

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 ...

VagishVela commented 8 years ago

@mirfilip @c-o-m-m-a-n-d-e-r

10 and this should be doable since the fix by https://bugs.webkit.org/show_bug.cgi?id=137759