SecureAssetDownload
SecureAssetDownload copied to clipboard
Craft CMS plugin for secure asset download URLs
Expiring downloads working. Onetime downloads don't because of SecureAssetDownloadService.php:115. URL is only valid for the set time. A new URL get generated every time the page gets loaded.
I for some reason would prefer one-time-download URLs as it provides a maximum level of security (would be nice, if this would be possible in the future) but for now,...
`if ($sendFile) { craft()->request->sendFile($path, $content, array('forceDownload' => true)); } else { throw new Exception(Craft::t("Unable to serve file")); }`