A deal you can't resist! Get upto 35% Off on this entire cyber week.

00Day 15Hr 53Min 58Sec

Downloadable products ACL Private in S3/Digital Ocean Spaces

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Downloadable products ACL Private in S3/Digital Ocean Spaces

Viewing 1 reply thread
  • Author
    • #96976
      martin gomez

      I have Wcfm Ultimate and MediaCloud Plugin in order to upload media files to DigitalOcean Spaces (offloadd media content). I upload files to Spaces in public mode but i want to upload them as private if its a downloadable product. MediaCloud developers says that they cant know if the uploaded file is a normal media file or a downloadable file BUT, as the file is uploaded from WCFM Dashboard i want to know if its possible to add something so MediaCloud can know that they should upload as private.
      He gave me this code.

      Do you have something in mind to perform this? I only need something to distinguish normal media upload from downloadable products.

      add_filter('media-cloud/storage/override-privacy', function($privacy, $key, $file, $meta) {
          if (isset($meta['image_meta']) || isset($meta['sizes'])) {
              // this is the main image.
          } else {
              // this is a thumbnail or sized version of the main image.
          return $privacy;
      }, 1000, 4);

      This is the forum question https://talk.mediacloud.press/topic/172/setup-for-woocommerce-downloadable-products/5

      if this counts as personalization please i need a quoation!


    • #97234
      WCFM Forum

      Already discussing over email, closing here!

Viewing 1 reply thread
  • The topic ‘Downloadable products ACL Private in S3/Digital Ocean Spaces’ is closed to new replies.