473,770 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1951
In html you have to put
<a href="http://www.gal.com/files/me.zip">Downloa d Here</a>

For it to open in a new window use
<a target="_blank" href="http://www.gal.com/files/me.zip">Downloa d
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">Downloa d 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">Downloa d
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
2634
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 results displayed on the same page with one column text and an image of the product. I've seen several tutorials that create site-level searches that will bring back a search results page with options to choose from. I am looking to create a...
3
7961
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
7347
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
7671
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: http://www.c-sharpcorner.com//1/PDFFileGeneratorPKS.asp The code was published by Pramod Kumar Singh. His code didn't use any component, but it lacks the detail of the syntax
13
8875
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 implement some way to enable downloading those files from the database which leads me to the following two problems: 1.) How can I create a file "in memory" as I don't want to create temporary files stored on my web server and
2
10778
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 accomplish this. I've got this far: In the html: .... table>
6
3378
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) I installed FrontPage server extensions to IIS on my computer while following instructions in a Microsoft ASP.Net MCSD training book. After installing the FrontPage Server Extensions I cannot create a new
6
3691
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 the document to my clients so that they could use it to. I know most of them use Outlook XP or Outlook 2003, so what I created was a page that creates a Visual Basic script that, when saved to the desktop and
4
6916
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 function creates the file as expected. When I loop through my array I get the error - "ArgumentException was unhandled - Illegal characters in path" The value "C:\Temp.txt" is the first value in the array - as it works
12
4019
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 time. The second may help me to know if an image has been downloaded and how many times. How to build such download link ? The informations I'd like is the userid, the datetime limit and the imagefile, off course everything must be encrypted...
0
9432
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10232
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, 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...
0
10059
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 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...
0
9873
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 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...
0
6682
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();...
0
5313
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
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...

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.