I enabled this plugin on a Pantheon.io-hosted site. It does upload files to /uploads/private/. However, I’ve just confirmed with Pantheon support that the contents every folder named /private/ in their setup will not be accessible to the browser. It will return a 403 error. I discovered this only after I spent several hours setting up the plugin only to create a product and find the product promo images such as book cover art weren’t appearing on the product page. When I accessed the product image URL directly, I got a 403 Forbidden error.
The problem code is line 142 of edd-pantheon-compat.php
$upload['subdir'] = '/private/edd' . $upload['subdir'];
This seems to be the path for ALL files uploaded when creating a new product, including the image of the product (such as an ebook cover representation) as well as the product itself. While that’s good for the permissioned files being sold, it’s bad for any product promo images. The workaround seems to be to upload product promo images via the normal media library, then use the “Download Image” widget in the product post type editor to select it from the media library.
The solution seems to be to code the main plugin so that the “Download Image” widget targets and sources images from the main Media Library path (/uploads/mm/yyyy/etc.) and not /private/edd/etc.
Please fix this as soon as possible.
Thanks.
]]>Just wondering if this plugin is alive and working?
]]>