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.jpgIn 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/279667Hope this help.- chrisOn 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:
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.jpgIn 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/279667Hope this help.- chrisOn 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:
[protect] error page (1997)
Public beta 6 for WebCatalog 4.0 is now available (2000)
Attn: Bug in GeneralStore example b15 (1997)
Linebreak as a delimiter in listwords? (2003)
Interfacing WebMerchant to www.fedex.com (1997)
Verifying SSL on Page (2002)
port 16080 problem (2003)
WebCat & Liststar (1997)
RE: [WebDNA] Ubuntu and WebDNA (2019)
Re: (1998)
Progress (database system) (2003)
WebCAT 3.x (2002)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Using Protection =) (2003)
Forcing Paragraph Breaks on Results (1998)
Netscape Communicator 4 chops off URLs (was No Data) (1997)
WebCommerce: Folder organization ? (1997)
multiple search commands (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
PIXO Support (1997)