Force uploaded image to download when link is clicked.

2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 20, 2011   (RSS)

By Mikey - June 20, 2011

I need to force images that have been uploaded to a photo gallery to download once the "Download Photo" link has clicked.

Anyone have any suggestions how to get the photos to download... instead of loading in the browser window? I'm open to using a form if there's a solution.

<?php foreach ($galleryRecord['gallery'] as $upload): ?>
<a href="<?php echo $upload['urlPath'] ?>">Download Photo<?php echo $upload['info1'] ?></a>
<?php endforeach ?>