Skip to content

Commit

Permalink
Merge pull request #85 from netgen/secure-download-url
Browse files Browse the repository at this point in the history
Generate secure URL for download link
iherak authored Nov 19, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 1a25654 + 96a9a0b commit 76ec784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RemoteMedia/Provider/Cloudinary/CloudinaryProvider.php
Original file line number Diff line number Diff line change
@@ -464,7 +464,8 @@ public function generateDownloadLink(Value $value)
$options = array(
'type' => $value->metaData['type'],
'resource_type' => $value->metaData['resource_type'],
'flags' => 'attachment'
'flags' => 'attachment',
'secure' => true
);

return $this->gateway->getDownloadLink($value->resourceId, $options);

0 comments on commit 76ec784

Please sign in to comment.