|
Posted by Sheldon Glickler on 01/08/08 17:09
Jeff wrote:
> Sheldon Glickler wrote:
>
> Tinker with the Content-disposition you send, change it to attachment.
>
> I suppose you could also change the content-type so the users computer
> wouldn't know what to do with and would be forced to save.
>
> Try the content-disposition first, as it is the correct way to do that.
Thanks for the suggestion. I googled and found
http://support.microsoft.com/kb/260519
which says:
You can use the content-disposition header to override this default
behavior. Its format is:
Content-disposition: attachment; filename=fname.ext
> Jeff
>> Harlan Messinger wrote:
>>> Sheldon Glickler wrote:
>>>> I want to be able to download a file. If the file is a zip or an
>>>> exe, the user is asked where to save the file
>>>
>>>
>>> I'm confused. First you say that *you* want to be able to download a
>>> file, and then you imply that you're talking about someone else.
>>
>> The customer wants to limit the number of downloads and he doesn't
>> want the pdf to display to the user. He wants the user to display it
>> on his own after he has downloaded it. I know this is silly since
>> once the user has downloaded the file, he can always copy it to any
>> number of machines, but the customer IS the customer.....
>>
>>>
>>>> and the download proceeds. However, if the file is a pdf, the pdf
>>>> displays and doesn't bring up the save as box.
>>>>
>>>> I do not want the pdf to display.
>>>
>>> If you're the user, then right-click the link (assuming IE or Firefox
>>> on Windows) and choose the option to save the link to your computer.
>>> If you aren't the user, then who are you to decide that the user
>>> wants to download the PDF to his hard drive?
>>
>> I am not the user.
>>
>>>
>>> > Rather, I want to have it bring up
>>>> the save as box. i do not want to first zip up the pdf and force
>>>> the user to unzip it.
>>>
>>> Why do you want to force the user to do anything except use his
>>> browser in the way in which he's accustomed to using it?
>>
>> That is what the customer spec called for -- and he is paying the bill.
>>
[Back to original message]
|