BuddyDev

Search

MediaPress – Compatibility with Mediacloud.press AND WP Offload Media

  • Participant
    Level: Initiated
    Posts: 10
    Mary Mekins on #42161

    Hello Team,

    This is a pre-sales enquiry for the above plugin, “MediaPress – Media Gallery plugin for WordPress & BuddyPress”.
    Our concern is that our internal pilot tests with above plugin has shown incompatibility with mediacloud.press wasabi, an s3 storage cloud provider. Whereas another gallery plugin (rtmedia) worked with mediacloud.press out of the box. We are next testing mediapress gallery with WP Offload Media with wasabi storage. Is there any additional settings to make mediapress work with mediacloud.press AND wp offload media.

    Thank you,

    Regards,
    Mary

    Reference Plugin:

    https://buddydev.com/mediapress/
    https://wordpress.org/plugins/ilab-media-tools/
    https://wordpress.org/plugins/amazon-s3-and-cloudfront/
    https://wasabi.com/sign-up/ (free trial)

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #42164

    Hi Mary,
    Thank you for your questions and interest in the plugin. The current plugin is not compatible with existing cloud storage plugins.

    The reason is use of 2 different hooks than WordPress core.
    In case of MediaPress, we are using 2 different hooks than what is expected by the above cloud plugins.

    The reason was to avoid generating extra images sizes registered by the theme when an image was uploaded via MediaPress.

    These hooks are ‘mpp_generate_metadata’ in place of ‘wp_generate_attachment_metadata’ and ‘mpp_handle_upload’ instead of ‘wp_handle_upload’.

    I will ask my team to do a proxy for these 2 hooks and check with the cloud plugins. Please allow us 2 working days to get back to you.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Mary Mekins on #42258

    Sure Brajesh,

    We will check back after holidays. Wish you a merry Christmas and happy holidays.

    regards,
    Mary

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #42262

    Thank you Mary.

    We wish you a Merry Christmas and Happy holidays too.

    I will update this topic with our results next week.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Mary Mekins on #42284

    Hi Brajesh,

    Just to update you, We tested mediapress gallery with WP Offload Media with wasabi storage, with same results as above with Mediacloud.press.

    If you have a beta of the working version, would like to test it out. Thank you.

    regards,
    Mary

  • Participant
    Level: Initiated
    Posts: 10
    Mary Mekins on #42323

    Hi Brajesh,

    Were you able to make it compatible? Looking forward to the update. 🙂

    Regards,
    Mary

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #42333

    Hi Mary,
    Most of our team is on holiday and will be back on 3rd. We will be able to get back to you after that.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Mary Mekins on #42383

    Hi Brajesh,
    Thanks for your update. We are looking forward to integrate the updated version of mediapress with mediacloud.press. Thank you.

    Regards,
    Mary

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #42385

    Hello Mary,

    Please try the following code:

    
    add_filter( 'mpp_handle_upload', function ( $args, $context ) {
        apply_filters( 'wp_handle_upload', $args, $context );
    
        return $args;
    }, 10, 2 );
    
    add_filter( 'mpp_generate_metadata', function ( $meta_data, $attactment_id ) {
        apply_filters( 'wp_generate_attachment_metadata', $meta_data, $attactment_id, 'update' );
    
        return $meta_data;
    }, 10, 2 );
    
    

    In case you are using the Media Cloud plugin use the following code as well:

    
    add_filter( 'media-cloud/storage/should-handle-image-upload', '__return_true' );
    

    Please let me know if it works or not.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 10
    Mary Mekins on #42417

    Thanks Brajesh and Ravi, for the update. The cloud storage is working, but some major css styling works on gallery comments remains. Isn’t there any documentation of Mediapress upload handler and gallery API, so that it can be used on mobile client using Native rest api.

    We could find a generic life cycle documentation which is quite old and has codes for Javascriptfor web client only.

    Reference: https://buddydev.com/mediapress/api-guides/mediapress-uploader-events-lifecycle/

    Regards,
    Mary

    • This reply was modified 2 years, 3 months ago by Mary Mekins. Reason: Css styling

You must be logged in to reply to this topic.

This topic is: not resolved