ChitChat icon indicating copy to clipboard operation
ChitChat copied to clipboard

Inability to add profile photo

Open mirfilip opened this issue 8 years ago • 4 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.

mirfilip avatar Mar 26 '16 09:03 mirfilip

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 avatar Mar 26 '16 09:03 c-o-m-m-a-n-d-e-r

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

mirfilip avatar Mar 26 '16 16:03 mirfilip

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

c-o-m-m-a-n-d-e-r avatar Mar 26 '16 17:03 c-o-m-m-a-n-d-e-r

@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

VagishVela avatar Oct 05 '16 07:10 VagishVela