Jump to content

Text Link Question ??


Guest judek

Recommended Posts

Guest judek

I know I can insert a link into text but is there a way to make that text link download a .jpg to the desktop without leaving the current page that the user is downloading the .jpg file from?

I sell printing and want the customer to be able to download a template file which is the .jpg to their desktop without ever leaving the page that they are downloading from (ie: which is any one of the item pages that have the template download link)

Thanks in Advance for any Help!

Link to comment
Share on other sites

Create a new directory for your image and create a file named .htaccess inside the directory (do not place this file in your site root...).

Edit the file, and add the line;

AddType application/octet-stream .jpg

Save and upload.

Place your jpgs in that directory, and you'll have to manually link to the file <a href="/yourjpgdir/file.jpg>Download</a>

Jason

Link to comment
Share on other sites

Create a new directory for your image and create a file named .htaccess inside the directory (do not place this file in your site root...).

Edit the file, and add the line;

AddType application/octet-stream .jpg

Save and upload.

Place your jpgs in that directory, and you'll have to manually link to the file <a href="/yourjpgdir/file.jpg>Download</a>

Jason

:) Thank You Jason. It works! Cheers!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...