Hi I have a large pdf file that if I create an anchor link to, the
browser will try to open the file, which takes quite a long time. Is
there a way to force the browser to download the file rather than try
to open it?
Thankss 13 51689
ron1972 wrote: Hi I have a large pdf file that if I create an anchor link to, the browser will try to open the file, which takes quite a long time. Is there a way to force the browser to download the file rather than try to open it?
If the user's browser is configured to open the file by default, there's
nothing you can do about it. That's as it should be. After all, if it's
too large to open, why should the decision be up to you that it *isn't*
too large for the user to want to download at all?
The courteous approach is to annotate the link with the size of the
document. If you want to be extra helpful, you can suggest that the file
is really large and the user may want to download it instead--for
example, by choosing "Download this link" or a similar command from the
context menu available on some installations (a.k.a. "right-clicking",
but that isn't available to all web users).
In our last episode,
<11************ ********@g43g20 00cwa.googlegro ups.com>,
the lovely and talented ron1972
broadcast on comp.infosystem s. www.authoring.html: Hi I have a large pdf file that if I create an anchor link to, the browser will try to open the file, which takes quite a long time. Is there a way to force the browser to download the file rather than try to open it?
If there is, it in your browser, not html. Consult your
browser's documentation or a newsqroup about the browser.
--
Lars Eighner us****@larseigh ner.com http://www.larseighner.com/
War On Terrorism: Joe McCarthy Brigade
"The decadent left in its enclaves on the coasts is not dead -- and may well
mount a fifth column." Andrew Sullivan, _The New Republic_
ron1972 wrote: Hi I have a large pdf file that if I create an anchor link to, the browser will try to open the file, which takes quite a long time. Is there a way to force the browser to download the file rather than try to open it?
The only surefire way would be to put it into a .zip file and link to
that instead.
Browsers are configured differently, depending on installed software,
installation standard settings and user preferences, and will handle
certain file types differently. Personally, I use Opera as my standard
browser, which is set to download everything that isn't presented as
HTML/XML, images, plugins or Java (the display of the latter two also
depends on my browser settings at the time, I usually leave them
disabled unless I really need them).
--
Kim André Akerĝ
- ki******@NOSPAM betadome.com
(remove NOSPAM to contact me directly)
ron1972 wrote: Hi I have a large pdf file that if I create an anchor link to, the browser will try to open the file, which takes quite a long time. Is there a way to force the browser to download the file rather than try to open it?
Firefox users may choose to install the PDF Download extension which
allows them to easily decide for themselves. https://addons.mozilla.org/extension...firefox&id=636
Other browsers may have similar options/extensions available to them, or
at least the ability to choose Save Link As... (or equivalent).
--
Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox
On Sat, 4 Feb 2006, Kim André Akerĝ wrote: The only surefire way would be to put it into a .zip file and link to that instead.
Nope. One of my browsers opens .zip files in a viewer.
Alan J. Flavell wrote: On Sat, 4 Feb 2006, Kim André Akerĝ wrote:
The only surefire way would be to put it into a .zip file and link to that instead.
Nope. One of my browsers opens .zip files in a viewer.
No offense intended, but if you have a browser that opens zips as a text
file instead of downloading them, then something is either horribly
miscponfigured, or if it's stock, it's probably either out of date, or
probably one no one used... I can't imagine such a broken browser ever
being popular, and yes, any graphical browser that doesn't know how to
treat such as well known binary (even just by ".zip" extension) is
considered broken.
For non graphical browsers, like Lynx, I can understand, but there just
isn't any excuse for graphical browsers.
What browser and platform was this? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matthew Sims |
last post by:
Is it possible to force a download without using the readfile
function?
My website setup consists of my server that serves the web pages plus
a high-speed file server elsewhere on the internet that servers my
files. I'm currently using header("Location: abc.com") to redirect my
users to this other site but can't force a download.
I can get it to work using readfile() but that means the file moves
from the high-speed server through my...
|
by: Navin |
last post by:
hi,
guys i am using the following code to force a file download dialog in
asp
Response.ContentType = "application/vnd.ms-excel"
response.AddHeader "content-disposition","attachment; filename=" &" &
StrFileName
Now the it works fine in ie5.5 sp2 but no ie5.5 sp1 it prompts the
user twice the open dialog box.
|
by: Guoqi Zheng |
last post by:
Dear Sir,
I made a force download in ASP. For other types of file, everything works
ok. but for .txt, .html this kind of file. it always return an error, file
not found. can someone point out what I did wrong here?
The following is my script
strContentType = "application/octet-stream"
abcFile = "filename="&objRs("DocumentName")
|
by: Navin |
last post by:
hi,
guys i am using the following code to force a file download dialog in
asp
Response.ContentType = "application/vnd.ms-excel"
response.AddHeader "content-disposition","attachment; filename=" &" &
StrFileName
Now the it works fine in ie5.5 sp2 but no ie5.5 sp1 it prompts the
user twice the open dialog box.
|
by: tma |
last post by:
How can I force a file to be downloaded to the client when the click a link
button, rather than show the file in the browser window (or another window).
I want the user to be prompted to open or save the file associated with the
link, not have it open automatically in their browser.
Thanks.
| |
by: comp.lang.php |
last post by:
I have a form that when you click the "Generate Report" submit button,
it will force download a CSV file, required for this project.
On the very same page you also have a "Search" submit button, when you
press it it should generate search results in a new page.
However, when you click the "Generate Report" submit button, the moment
you try to THEN click the "Search" submit button, the "Search" submit
button NEVER goes to a new page but...
|
by: Bouffa |
last post by:
Hello everyone,
I suppose you all know force-download scripts. The problem is that
these scripts don't allow files to be splitted when downloading them
via a download manager.
I've found a solution to enable download resuming, but now, it remains
the splitting problem. Does anyone have any idea ?
|
by: jinnareddy |
last post by:
Hi,
I'm unable to download a file that is having a 2-byte char in its name (e.g.テ) using force download option. Though, am able to download file names involving ASCII chars. I have tried URL encoding too, but with no success.
Can someone provide details on how to handle the 2-byte char URLs and download the files?
Appreciate your suggestions/help in resolving it.
Here is my code:
|
by: Zabivb |
last post by:
I have a html file on my server, if a user clicks on a link it should download, but instead it opens up in browser window
coding for downloading
<?php
echo $todayis = date("l, F j, Y.") ;
$id1 = $_POST;
header('Cache-Control: public');
header('Content-Description: File Transfer');
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |