HTML下载仅适用于某些文件

时间:2016-07-22 21:10:29

标签: html html5 download web-hosting

我在“downloads / programs”目录中有两个文件,名为“Pic1.jpg”和“Averager.py”。我正在使用biz.nf的虚拟主机,当我的代码中有这个目录的下载链接时

<a href="/downloads/programs/Pic1.jpg" download><article>
        <header>
                <h1>Averager (Windows)</h1>
        </header>
        <p>This is a small application used to store and calculate grades based on weights that the
        user inputs. It also has other functionalities, such as extra credit, opening syllabi, 
        and storing separate classes</p>
        <footer>
                <p>written by Matt Niemiec</p>
        </footer>
</article></a>

此代码完美无缺,但不幸的是,当我将下载更改为<a href="/downloads/programs/Averager.py" download>时,它显示enter image description here我不确定这是否是我的网络托管,托管设置,浏览器的问题设置,我的代码或文件,所以我正在寻找一个起点。

0 个答案:

没有答案