thomaswelton / laravel-rackspace-opencloud

Laravel package for the Rackspace Open Cloud
29 stars 14 forks source link

get secure ssl url #11

Closed Kampfbereit closed 10 years ago

Kampfbereit commented 10 years ago

Is there a way to get a secure link to the uploaded files? $file->PublicURL() only gives the http version and I need the https://. Thanks

thomaswelton commented 10 years ago

I extend this, https://github.com/rackspace/php-opencloud so there are a few options for publicUrls https://github.com/rackspace/php-opencloud/blob/a54ffcb7b3064bb5df59a2364f64f2d7e4544198/lib/OpenCloud/ObjectStore/Resource/DataObject.php#L408

To get the public https url use

$file->PublicUrl('SSL')

Please close this issue if that works for you

Kampfbereit commented 10 years ago

It did, thanks!