Skip to main content
carriec42667153
Participant
2월 27, 2019 9:29 오후 UTC
해결됨

zip file download from Dreamweaver not working

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!

    이 주제는 답변이 닫혔습니다.
    anissa_thompson
    Community Expert
    3월 1, 2019 11:53 오후 UTC

    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

    10 답변

    Nancy OShea
    Community Expert
    Community Expert
    2월 27, 2019 10:02 오후 UTC

    What's the URL to your online page?

    번역
    Nancy O'Shea— Product User & Community Expert
    carriec42667153
    Participant
    2월 27, 2019 10:33 오후 UTC

    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
    2월 27, 2019 9:54 오후 UTC

    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
    Community Expert
    3월 1, 2019 11:53 오후 UTC

    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
    3월 5, 2019 1:59 오후 UTC

    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

    번역