ReturnRaw, download link for mov
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69418
interpreted = N
texte = Hello to the rest of "still WebDNA programmers" ...I'm trying to make a download link for quicktime movies and force the browser to DOWNLOAD the file instead of playing it in the window.My download link opens a popup window, informing the user that the download is in progres. The ReturnRaw code itself is in the source of the popup window.I use the following ReturnRaw code... the file gets downloaded as expected but the file name wil be "mymovie.mov.html".How can I set the filename without the .html suffix?Thierry[text secure=f]path=fileupload[/text][text secure=f]getfile=mymovie.mov[/text][text]line_ending=%0D%0A[/text][ReturnRaw binarybody=[path]/[getfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!][/!]Content-Disposition: attachment; filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!][/!][/ReturnRaw]-------------------------------------------------------------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:
Hello to the rest of "still WebDNA programmers" ...I'm trying to make a download link for quicktime movies and force the browser to DOWNLOAD the file instead of playing it in the window.My download link opens a popup window, informing the user that the download is in progres. The ReturnRaw code itself is in the source of the popup window.I use the following ReturnRaw code... the file gets downloaded as expected but the file name wil be "mymovie.mov.html".How can I set the filename without the .html suffix?Thierry[text secure=f]path=fileupload[/text][text secure=f]getfile=mymovie.mov[/text][text]line_ending=%0D%0A[/text][ReturnRaw binarybody=[path]/[getfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!][/!]Content-Disposition: attachment; filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!][/!][/ReturnRaw]-------------------------------------------------------------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/
thierry
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:
WC Bulletin Board Issue (2003)
Template Not Found (1998)
[OT] Yahoo! Front Page (2002)
Internet Explorer and caching (2000)
Beta Documentation (1997)
[date format] w/in sendmail (1997)
Initiating NewCart (1997)
WebCommerce: Folder organization ? (1997)
Authenticating users without dialog box (1997)
[WebDNA] Advices for Linux Config (2017)
Possible Bug in 2.0b15.acgi (1997)
WebCat2b15MacPlugin - showing [math] (1997)
How fast is your server? (2002)
Summing fields (1997)
(2000)
automating txt downloads for conversion to webcat db (2006)
pricing continued (1998)
[format] problems (1998)
Newbie problem blah blah blah (1997)
How to archive....? (1998)