Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can´t upload avatars and proflie covers on ios


  • magland
    Participant

    @magland

    Hi,

    Profile covers and avatar uploads don’t appear to be working on ios devices.

    I’ve tested an old ipad and iphone 7.

    Clicking the ‘Select a file’ button simply does nothing.

    It works find on a desktop with chrome. Also works fine on my android phone.

    I’ve added this to my bp-custom.php

    if ( wp_is_mobile() ) {
    add_filter( ‘bp_avatar_is_front_edit’, ‘__return_false’ );
    }

    This gets it working using the old fallback interface for iphone with the added benefit of keeping the avatar UI in place for desktops.

    The above fix doesn’t help with cover images though.

    Is there another equivalent filter to disable the avatar UI but for cover images?

    Alternatively is there a better solution?

    The html for the button seems to be:

    <input id=”bp-browse-button” type=”button” value=”Select your File” class=”button” style=”position: relative; z-index: 1;”>

    Would it help to simply change this to type=”file”? Something like:

    <input type=”file” accept=”image/*” capture=”camera” />

    I’ve seen this article referenced:
    A good way to shape the future of BuddyPress Attachments is to take care of Avatars

    In that article it mentions camera enabled devices and I can see a screenshot where there is a camera tab. I don’t get this option on my mac with a webcam in either chrome or safari. Do I need to enable this or should it work?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar