I've got a file upload location that needs to serve files via http in the public part of the website, and serve files via https in the private part of the website and in the control panel (to avoid getting security warnings).
How can I handle this in EE?
Here's how I'm currently specifying file upload locations in the config.php file:
/* File Upload Preferences
-------------------------------------------------------------------*/
$config['upload_preferences'] = array(
1 => array(
'name' => "Uploads",
'server_path' => "${_SERVER['DOCUMENT_ROOT']}/uploads/",
'url' => "http://${_SERVER['HTTP_HOST']}/uploads/"
)
);