473,466 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Allowing user to Download

5 New Member
Hi, All,
This may belong in a different forum. If so, just tell me. I'm new to this site, and relatively new to web page design.

I'm creating a web page using HTML to put on my ISP server. I have a PDF document also on my server. I want my friends to be able to D/L the PDF to keep, not just read. I would like to have a link that will give them a chance to save it rather than just have it open on their browser---sorta like when you D/L a program or something from a site and you get a window called "download manager" that asks if you want to execute, save, cancel, etc.

I see all kinds of "download manager's" listed on the net (both free and priced) but they all seem to be described as only for ME to d/l.

I 'preciate anyone's help/advice.
Oct 3 '06 #1
5 1329
steven
143 New Member
When they view the PDF, they are essentially downloading it onto their own computer to view. That's how the Internet works. Every web page you visit is downloaded to your computer for you to see it.

Because the PDF extension will be recognised by their browser, it automatically downloads the file and then opens it in a viewer. They can save the file from within the pdf viewer (to a location they specify) or you can just put a little note on the page near the download that says "Right click and save target / as to download the file.", or something to that effect.
Oct 4 '06 #2
agisoec
5 New Member
Hi, Steven:

I sure appreciate you taking time to answer. I was aware of the right-click and save-as option. I will use it if necessary. What I'm hoping to find is how to set up a link that will start a download manager pop-up program that let's the user run, save, cancel, etc.

I sure hope somebody gives me the advice I need.

Thanks, again, for your advice.

EARL
Oct 6 '06 #3
steven
143 New Member
Hi, Steven:

I sure appreciate you taking time to answer. I was aware of the right-click and save-as option. I will use it if necessary. What I'm hoping to find is how to set up a link that will start a download manager pop-up program that let's the user run, save, cancel, etc.

I sure hope somebody gives me the advice I need.

Thanks, again, for your advice.

EARL
That's what I'm explaining to you.

As far as I'm aware, it's not possible to force the download option, because the browser detects the mime-type. As I understand it, because you are linking the file in the html, the mimetype is detected from the extension and/or perhaps the headers of the file. It's not controlled by the html. So unless there's some kind of server side setting, I don't think it's possible to manually set it so that it auto pops up asking the user to download the file. It would only do this if it didn't recognise the files mimetype and/or there's no software to handle the file.

If you want to achieve this, change the file extension or zip it up.

If there is a way to do this, I wouldn't mind knowing, but I don't think it's possible.
Oct 9 '06 #4
ronverdonk
4,258 Recognized Expert Specialist
This question really belongs in e.g. the PHP forum. But anyway: if your 'to-download' file is on the server and you can put a small PHP download application on that server, you can accomplish to show the download requestor the standard 'open', 'save' or 'cancel' alert.

All you need to do is put a
[html]<a href="download.php?download_file=MyDocument.pdf">D ownload here</a>[/html] statement in your html script and store the download.php application at your server. If you want such code, please pass your thread to the PHP forum, so other members may also see it.

Ronald :cool:
Oct 9 '06 #5
agisoec
5 New Member
Thanks, Ronald...I appreciate the response. I will re-post this question to the PHP forum as you suggested, and thanks for the HTML Code snippet.
Earl
Oct 9 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Jesse Engle | last post by:
how can i allow a user of my program to enter paragraphs seperated by line spaces using gets() or a similar function? i want the user to be able to enter as many lines as they want, while able...
4
by: Nathan Sokalski | last post by:
I want to give visitors to my site the option of downloading a generated ..txt file by clicking a button. I know how to generate text files, but how do I cause the browser to pop up one of those...
0
by: Joe Schmoe | last post by:
I am working on an ASP.NET application that generates an Excel 2003 spreadsheet on demand for the user, containing much sales information, and then editable cells for the salerep user to enter...
5
by: Mike Mascari | last post by:
I'd like to ensure that the creation of a department also implies the creation of two to eight projects; no more, no less: CREATE TABLE departments ( department text primary key not null ); ...
3
by: mpar612 | last post by:
I am trying to create an area where a user can come to a page that queries a database and displays links to files. Here is the code for the link: <td><a...
2
by: ER | last post by:
Hi There I am looking for some pointers on the best way to allow a user to modify the layout and components of a form. They would be able to add buttons and change the position, color etc. ...
2
shane3341436
by: shane3341436 | last post by:
Hello, I have problems when allowing the client to download the swf file. When clients donwloads the file an empty swf file is downloaded. I used readfile() function for this purpose
1
by: MBrown1171 | last post by:
Hi, I'm creating an application for a company to be able to logon to different vendor websites using this company's client's credentials, in order to get pdf's of the clients invoices. I'm using...
3
by: jainritesh | last post by:
Hello All, I want to confirm that the user is registered member before he is redirected to download link. How do i read URL stored in DB and redirect user to this URL in PHP, if there is no...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.