How to create download ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • galsaba

    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

  • Craft

    #2
    Re: How to create download ?

    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
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    galsaba wrote:[color=blue]
    > 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[/color]

    Comment

    • bissatch@yahoo.co.uk

      #3
      Re: How to create download ?

      How does one go about having the user automatically prompted for
      download? Do you need to put something in the page header? Cheers

      Burnsy

      Comment

      • Daniel Tryba

        #4
        Re: How to create download ?

        bissatch@yahoo. co.uk wrote:[color=blue]
        > How does one go about having the user automatically prompted for
        > download? Do you need to put something in the page header? Cheers[/color]

        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).

        Comment

        • John Dunlop

          #5
          Re: How to create download ?

          Craft wrote:
          [color=blue]
          > In html you have to put
          > <a href="http://www.gal.com/files/me.zip">Downloa d Here</a>[/color]

          Ok, and instead of 'Click Here' you've put 'Download Here', a
          nice finishing touch if I may say so.
          [color=blue]
          > For it to open in a new window use
          > <a target="_blank" href="http://www.gal.com/files/me.zip">Downloa d
          > Here</a>[/color]

          What does your browser do if you follow a link like that?
          [color=blue]
          > For more information go to
          > http://www.w3schools.com/html/default.asp[/color]

          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

          Comment

          • John Dunlop

            #6
            Re: How to create download ?

            Somebody wrote:
            [color=blue]
            > How does one go about having the user automatically prompted for
            > download? Do you need to put something in the page header?[/color]

            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

            Comment

            Working...