473,323 Members | 1,551 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,323 software developers and data experts.

Allowing user to Download

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 1327
steven
143 100+
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
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 100+
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 Expert 4TB
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
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.