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

How to create download ?

I upload a file to my website.
the name of the file is me.zip.
What command I need to write as html to have the user to download it?
2. If I uploaded the file me.zip in my website: www.gal.com/files
how the user can download this file?

thanks,

galsaba

Jul 17 '05 #1
5 1931
In html you have to put
<a href="http://www.gal.com/files/me.zip">Download Here</a>

For it to open in a new window use
<a target="_blank" href="http://www.gal.com/files/me.zip">Download
Here</a>

For more information go to
http://www.w3schools.com/html/default.asp

galsaba wrote:
I upload a file to my website.
the name of the file is me.zip.
What command I need to write as html to have the user to download it?
2. If I uploaded the file me.zip in my website: www.gal.com/files
how the user can download this file?

thanks,

galsaba


Jul 17 '05 #2
How does one go about having the user automatically prompted for
download? Do you need to put something in the page header? Cheers

Burnsy

Jul 17 '05 #3
bi******@yahoo.co.uk wrote:
How does one go about having the user automatically prompted for
download? Do you need to put something in the page header? Cheers


All browsers I ever used have such functionality _IF_ the user wants it.
Most of the times it's "hidden" under the right mouse button, so just
tell them about it if you think that the default behavior for such a
link isn't what the user wants (most of the time the behavior you want
to force here really pisses me of).

Jul 17 '05 #4
Craft wrote:
In html you have to put
<a href="http://www.gal.com/files/me.zip">Download Here</a>
Ok, and instead of 'Click Here' you've put 'Download Here', a
nice finishing touch if I may say so.
For it to open in a new window use
<a target="_blank" href="http://www.gal.com/files/me.zip">Download
Here</a>
What does your browser do if you follow a link like that?
For more information go to
http://www.w3schools.com/html/default.asp


I see their tutorials come highly recommended, being
recommended reading at over 100 universities!! I bet they're
real proud - it's not everybody can say *that*.

Are you one of their certified HTML Developers?

--
Jock
Jul 17 '05 #5
Somebody wrote:
How does one go about having the user automatically prompted for
download? Do you need to put something in the page header?


What does your browser do if you follow a link to a zip file?

Anyhow, there's always the Content-Despot header, if that's of
any use to you.

--
Jock
Jul 17 '05 #6

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

Similar topics

1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
3
by: nick | last post by:
For example, I want to create a link to download html or mp3 file instead of show it in browser or launch media player to play it....
4
by: Asaf | last post by:
Hi, Is there a way to create a temporary download link and to know when the client has finished downloading the file? Thanks in advanced,
4
by: Hongbo | last post by:
Hi, I'd like to create PDF file with tables in ASP.NET application in C# without using any third party component. I did some search online and only found the following link:...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
2
by: msnews.microsoft.com | last post by:
I want to read information out of a database at runtime (names of files available to download) and create a list of linkbuttons that the user can click on to download the file(s). How can I...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
6
by: windandwaves | last post by:
Hi Folk Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
12
by: Bob Bedford | last post by:
I've to build a website where the customer can buy an image. I'm thinking in the 2 ways to let people get those images: receive them by Email or send them an image link wich validity is limited in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.