SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Jul 2013
    Location
    Houston
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Don't know how to put downloadable zip files on site

    I'm new to the game of web designing. I have learned all the basics of using a database back end (MYSQL) with PHP to build a website. One of the things I still don't know how to do is put like a zip folder, or even individual files, on my website and like to them for people to download. The reason I want to do this is because I'm trying to build an website that's basically a portfolio of all of the programs I've done so that I can just give them the website and they can see every thing I've done for themselves.

  2. #2
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    You can just upload your zip-files, and make links to them; for example:
    Code:
    <a href="http://mydomain.com/zips/project1.zip">Download Project 1 (zip-file, ...kB)</a>
    <a href="http://mydomain.com/zips/project2.zip">Download Project 2 (zip-file, ...kB)</a>
    Clicking the links, the visitor will be asked where to save the zip-file (in a common Explorer window).

  3. #3
    SitePoint Member
    Join Date
    Jul 2013
    Location
    Houston
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it in one.

    Thank you very much.

  4. #4
    SitePoint Member belansus's Avatar
    Join Date
    Aug 2013
    Location
    Newcastle
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also place them outside of the public domain and use server side processing to collect users email addresses prior to download.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2009
    Location
    London
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One thing I'd add is that downloading zip files is not as popular as it once was, due to hidden malware or similar, and some downloads might get blocked.

    If you need to use the zip file to control a directory structure on download, or it's essential for compression, then fine.

    But if it's a single file and the compression is not large then just offer the original file. I've seen people offer single pdf files in zips with little compression benefit and it just unnecessarily complicates things for the end user.

    Hope this helps,

    S

  6. #6
    SitePoint Member
    Join Date
    Aug 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Francky View Post
    You can just upload your zip-files, and make links to them; job example:
    Code:
    <a href="http://mydomain.com/zips/project1.zip">Download Project 1 (zip-file, ...kB)</a>
    <a href="http://mydomain.com/zips/project2.zip">Download Project 2 (zip-file, ...kB)</a>
    Clicking the links, the visitor will be asked where to save the zip-file (in a common Explorer window).
    Thanks for the fix. That works fine for me too.

    Mar, CA

  7. #7
    Non-Member
    Join Date
    Sep 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A ZIP file contains more than one files that are compressed for easy transfer through network and for efficient storage. However, many times it has been marked that you receive error messages while accessing the ZIP file, leading to data loss.

    <snip>
    Last edited by Force Flow; Sep 1, 2013 at 21:51. Reason: removed fake signature

  8. #8
    SitePoint Member
    Join Date
    May 2013
    Location
    midwestern USA
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here, you can read about the benefits of the download attribute in HTML5. http://davidwalsh.name/download-attribute


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •