Delivering Files with lcServer ?
scott at tactilemedia.com
Thu Apr 24 20:29:38 EDT 2014
I'm hoping someone knowledgable about server stuff has a solution to a
problem I have delivering a file using lcServer via an iframe.
I'm using lcServer with the following code to trigger a file download:
put url ("binfile:files/sound.zip") into theFile
put header "Content-Disposition: attachment; filename=" & quote &
"sound.zip" & quote
put new header "Content-Type: application/force-download"
put new header "Content-Type: application/zip"
put new header "Content-Type: application/octet-stream"
put new header "Content-Type: application/download"
put header "Content-Description: File Transfer"
put header "Content-Length:" && the length of theFile
This appears to work fine from basic web page -- a download is triggered
in the browser and the file is written to the drive.
When I run the same code on a page within an iframe, I get the raw file
code posted to the iframe. :-(
All pages reside in the same domain (no cross domain issues) so I'm at a
loss on how to deal with this. Any ideas?
Thanks & Regards,
Tactile Media, UX/UI Design
More information about the Use-livecode