Skip to main content
carriec42667153
Participant
February 27, 2019
Answered

zip file download from Dreamweaver not working

  • February 27, 2019
  • 2 replies
  • 2163 views

I have created two games in Unity that I would like to use in my Dreamweaver website.  First, I'm using a zip folder for the player to "click" on a link to download the files for the games.  There are two separate html pages for each of the game files.  The first one is working just fine.  The second one is not working.  The code and css are identical.  Everything is identical except for the zip files.  This is the code I'm using: <a href="TheHouse.zip" download>Download "TheHouse" game files here</a>

When I then go the the live version of the page and click on the "download The House game files here", it simply says "Failed-no file." where the little zip icon is at the bottom left of the screen where the downloads show up. I have tried everything I can think of and have worked on this all day, with no success.  The first game is 500MB the one that isn't working is about 1GB total. 

I'm happy to provide any additional information that will be helpful; I just don't know what that would be.  Thank you!

    This topic has been closed for replies.
    Correct answer anissa_thompson

    In addition, double check your code. You wrote in your OP:

    <a href="TheHouse.zip" download>Download "TheHouse" game files here</a>

    If that's the case, in addition to checking your path and filename case sensitivity, fix your link to:

    <a href="TheHouse.zip">Download &quot;TheHouse&quot; game files here</a>

    The extra word "download" in your html anchor tag may be breaking your link.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    February 27, 2019

    What's the URL to your online page?

    Nancy O'Shea— Product User & Community Expert
    carriec42667153
    Participant
    February 27, 2019

    http://127.0.0.1:50461/preview/app/index.html

    Here's what I'm trying now...there are 2 folders and three files that are part of the zip file (so 5 things total that need to be able to download).  4 of these are working and one isn't.  I know this because I zipped four together and they are on the top link.  The one that isn't working  is the bottom link.  It's also the largest.

    [Moderator Note: Personal Information Removed. Please turn off or delete signatures when replying to forum posts via email.]

    Jon Fritz
    Community Expert
    Community Expert
    February 27, 2019

    A few ideas off the top of my head...

    Did you upload the .zip file, and upload it to the correct location given in the link?

    According to the link given, the zip file needs to be in the same folder as the page on the server. If it's not, the link won't work.

    Do you have unlimited space on your server? It's possible your 1GB file isn't actually being uploaded due to hosting space limitations.


    Make sure the case structure of the file and the link code match exactly. MyFile.zip and myfile.zip are the same locally, on Windows and Mac OS, but they're typically two separate files/locations on a server.

    A simple case mismatch would be enough to return a 404 Not Found error when a link is clicked.

    anissa_thompson
    Community Expert
    anissa_thompsonCommunity ExpertCorrect answer
    Community Expert
    March 1, 2019

    In addition, double check your code. You wrote in your OP:

    <a href="TheHouse.zip" download>Download "TheHouse" game files here</a>

    If that's the case, in addition to checking your path and filename case sensitivity, fix your link to:

    <a href="TheHouse.zip">Download &quot;TheHouse&quot; game files here</a>

    The extra word "download" in your html anchor tag may be breaking your link.

    Hope this helps! Make sure to press "✔ Correct Answer" on this post if this answers your question. Happy Creating!Anissa • @anissat
    Jon Fritz
    Community Expert
    Community Expert
    March 5, 2019

    The "download" attribute shown in their <a> tag is new to HTML5 and is meant to tell the browser to download the file versus opening it for viewing.

    There's nothing wrong with having it there, but it is a bit redundant with a .zip file since browsers don't open them by default. Usually it would be used with a .pdf, .txt, .img, or other file that browsers display, when it is more desirable to have that file download directly to the viewer's computer