You are here: Re: Link, which always offers to save/open.... « HTML « IT news, forums, messages
Re: Link, which always offers to save/open....

Posted by Jonathan N. Little on 03/14/07 13:57

jodleren wrote:
>>> and came up with:
>> [...]
>>> header('Content-type: application/force-download');
>> Replace that line with a real content type. For example, if the file is a
>> PDF, then the Content-Type should be "application/pdf". If it's a JPEG,
>> then "image/jpeg". If you are really unable to determine the correct
>> content type, use "application/octet-stream".
>>
>> Using made-up content types like the one you've used above may seem to be
>> "convenient", but it harms the web as a whole.
>
> Since I can have _any_ file, where is there an overview of those or
> trick to get them?
>
> And since I open this from another window, is the a way to have a
> link, which goes directly to the open/save dialog. That is what I
> really need.

This question gets ask quite often, a a specific media is handled by the
browser (open in the browser, open directly by the app or download) is
browser setting so if the user has set it to open in the browser there
is not much you can do about it.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация