Re: JPG Force Download

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69226
interpreted = N
texte = Hi I had a look on the archives and found this which seems to be working ok, thanks for the response though. http://webdna.smithmicro.com/ref/pages.html? context=ReturnRawContext.html#BinaryBody 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 ======================================== On 16 Aug 2007, at 12:35, Christophe Billiottet wrote: > 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 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 I had a look on the archives and found this which seems to be working ok, thanks for the response though. http://webdna.smithmicro.com/ref/pages.html? context=ReturnRawContext.html#BinaryBody 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 ======================================== On 16 Aug 2007, at 12:35, Christophe Billiottet wrote: > 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 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/ Steve Craig

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:

interesting (2003) [isfolder] and [filename] (1997) creative use of webcatalog (1998) Roundup function? (1997) Criticism of WebCatalog: Keep It Coming! (1998) WebCat with WebTen (1998) [WebDNA] High-profile WebDNA sites? (2008) [BoldWords] WebCat.acgib15Mac (1997) Setting up shop (1997) FreeBSD 4.1 Installer needed (2007) www.smithmicro.com down? (2000) [FoundItems] solved - thanks (1997) [include ...] behavior (1997) Search in 2 or more catalogs (1997) Resume Catalog ? (1997) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) The List is Changing (1997) carriage returns in data (1997) re:check boxes (1997) [searchString] (1997)