473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Link to download file

My clients produces printing proofs on line and wants to send an email to
the client with a link to the proof. That is all working fine, the proofs
are in .pdf format so the email link is just the full file name and just
pops up a browser and it loads the pdf file. We have noticed that you can
right click on link and have the options of downloading the file. Is there
some way of specifying in the likn that it should go straight to the file
download procedure? Most of his clients are Mac users which don't have the
right mouse button...He'd really like to offer the option "Click here to
view the proof in your browser or click here to download it to your
computer" and have this work for PC's and Macs. Any ideas? Thanks!
Jul 20 '05 #1
1 22518
VK
It's determined by system settings, and you don't have a control over it
from page. If you really want to please your visitors, you may use the
"False MIME" trick, but it requires server-side scripting.
The trick is to send your PDF file with content-type header
"application/octet-stream". This will force any browser to show the
standard "Run/Save" dialog (unless something deeply wrong with its
security settings). The file extension is not affected (it will be saved
as .pdf, not .exe).

Simon Wigzell <si**********@shaw.ca> wrote in message
news:fdlhb.55118$9l5.999@pd7tw2no...
My clients produces printing proofs on line and wants to send an email to the client with a link to the proof. That is all working fine, the proofs are in .pdf format so the email link is just the full file name and just pops up a browser and it loads the pdf file. We have noticed that you can right click on link and have the options of downloading the file. Is there some way of specifying in the likn that it should go straight to the file download procedure? Most of his clients are Mac users which don't have the right mouse button...He'd really like to offer the option "Click here to view the proof in your browser or click here to download it to your
computer" and have this work for PC's and Macs. Any ideas? Thanks!

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: peetm | last post by:
I'd like to write to a log whenever a visitor to my site downloads a file. So, I'd like the link they click to be to a php 'page' that returns the file. Don't know how to do that! Side...
3
by: Jan Bols | last post by:
I'm using PHP 4.3 and APACHE2.0. I have a website that requires people to log in before they can download files from my website. A person is logged in if there is a session-variable $logged_in set...
0
by: Rea Peleg | last post by:
link to configuration file prevents user control download to internet explorer Hi I have a simple web application which consists an opening html page with a (windows form user) control which...
1
by: Steve | last post by:
Hi, I need to provide a button to download a file from my server. However, I would like to hide the location of that file and am not sure how to do this securely with PHP. For example, the user...
3
by: John Spiegel | last post by:
Hi all, I'm trying to do something simple here...just provide a link from which a user can download a file. I'm using Server.MapPath() in my codebehind to find out physically where the file is...
4
by: Ian Davies | last post by:
Hello I have seen some tutorials to put a update a counter field in a record. I have the counter field in a table that also has a field for a path to file. I display the records in a table on...
5
by: nephish | last post by:
Hello there, i have an app that i need to be able to publish a link to download a csv file. i know that i can use php to make the file, but how to i link to it through php. like if i have an...
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
3
by: pd | last post by:
guys, in my web app, i have a simple download button and a href which points to a file on my server, when the user clicks on the button or the link, the file should simply be downloaded to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.