Hi all,
I am very glad and thankful to you all for your time to respond to my mail.
Thank you all for the advice and tips given.
Actually when i used force download what i meant was the save as window
to come instead of the media file being played by the browser (thus giving
the freedom of
correction its PERL no PEARL, thanks
On 6/13/07, Nick Gleitzman [EMAIL PROTECTED] wrote:
On 13 Jun 2007, at 8:10 PM, SJL wrote:
I have this problem where i want to force download...
I actually want the save as window to appear and give the choice to
the viewer.
Hmm. I've been
The choice on how to handle any MIME type is in the hands of the downloading
application and cannot be controlled by the source site. If it was not for
this, it would be too easy for a site to infect any target operating
system with malicious intent.
Regards,
Gary
[that is - if you find a way
On Wed, 13 Jun 2007 15:40:39 +0530, SJL wrote:
I have this problem where i want to force download and mp3 and mp4
format file, but by default the browsers are handling it.
I actually want the save as window to appear and give the choice to
the viewer.
Zipping the file is the only way I
was just going to say that you could set a header with PHP, but then
noticed that you don't have it.
Nick
Gary Menzel wrote:
The choice on how to handle any MIME type is in the hands of the
downloading application and cannot be controlled by the source site. If
it was not for this, it would
Lea de Groot wrote:
On Wed, 13 Jun 2007 15:40:39 +0530, SJL wrote:
I have this problem where i want to force download and mp3 and mp4
format file, but by default the browsers are handling it.
I actually want the save as window to appear and give the choice to
the viewer.
In regard to content-disposition
The following RFC states (very late in the text in the section on
Security)
In general, the receiving MUA should not name or place the file such
that it will get interpreted or executed without the user explicitly
initiating the action.
And I forgot to add...
By the time you could execute Javascript (and that would not be possible
once the MIME type has been specified) the browser would have already
decided what to do with the content (NOTE: I cannot see how you could
execute any JS once you were outside of the HTML MIME
On 13 Jun 2007, at 8:10 PM, SJL wrote:
I have this problem where i want to force download...
I actually want the save as window to appear and give the choice to
the viewer.
Hmm. I've been following this thread, with its discussion of headers,
MIME types and content-disposition, and I