Re: JPG Force Download

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69225
interpreted = N
texte = Hi Steve! Do not link to the jpg directly, but use server-sided script page instead. For example, http://www.domain.com/getfile.tpl?file=yourfile.jpg In the script, add some additional header before write out the file content. content-disposition=attachment; filename=yourfile.jpg; Have a look there too: http://support.microsoft.com/kb/279667 Hope this help. - chris On Aug 16, 2007, at 8:02, Steve Craig wrote: > Hi > > I am away to start coding a small image library for a client and > I'm just wondering if anyone has a way of forcing a "Save as" > download box to appear, when a user selects an image, instead of > the browser just opening the jpg? I realise I could just zip the > files but would prefer not to if possible. > > Thanks for any help in advance. > > Of course this is on the assumption there's anyone still here!!! > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: JPG Force Download - BUG? ( thierry 2007)
  2. Re: JPG Force Download - BUG? ( thierry 2007)
  3. Re: JPG Force Download ( Steve Craig 2007)
  4. Re: JPG Force Download ( Chris 2007)
  5. JPG Force Download ( Steve Craig 2007)
Hi Steve! Do not link to the jpg directly, but use server-sided script page instead. For example, http://www.domain.com/getfile.tpl?file=yourfile.jpg In the script, add some additional header before write out the file content. content-disposition=attachment; filename=yourfile.jpg; Have a look there too: http://support.microsoft.com/kb/279667 Hope this help. - chris On Aug 16, 2007, at 8:02, Steve Craig wrote: > Hi > > I am away to start coding a small image library for a client and > I'm just wondering if anyone has a way of forcing a "Save as" > download box to appear, when a user selects an image, instead of > the browser just opening the jpg? I realise I could just zip the > files but would prefer not to if possible. > > Thanks for any help in advance. > > Of course this is on the assumption there's anyone still here!!! > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Christophe Billiottet

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Searching multiple fields from one form field (1997) Search or delete (or date or time) has bugs ... (1998) Netscape (1997) Bug Fix for wbrk??? (1999) To brighten your day... (2006) [Cart] ... (1997) StandardConversions.db (1998) cookies and [returnraw] (1997) [WriteFile] problems (1997) creator code (1997) Gone fishin' (was The Robert Elliot Report?) (2006) WebCatalog not running after upgrade (2000) updating with ProductEditor (1998) 2.1 Stuff (1998) Running _every_ page through WebCat ? (1997) WebDelivery: One step closer !! (1997) Purging the .hdr file from cache ... ? (2003) 5.0 Pricing (2003) problems with 2 tags (1997) Emailer setup (1997)