Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多
封存

Download link is driving me crazy

robert.loos

I struggled some time with download links, no matter what filename I specified in the download="filename" attribute, the file I got was always download(1..n). Now I put all into one zip archive. I have a german and an english page, the link is:

Alle Skripte hier zusammen in einem ZIP: <a href="../downloads/backup.zip" title="Download Backup Skripte" class="ilbutton" download>backup.zip</a>

in der deutschen und

Here all together in one zip file: <a href="../downloads/backup.zip" title="Download Backup Skripts" class="ilbutton" download>backup.zip</a>

. I can't see a difference except the language. But: the download of the german link comes as "download.zip". The one from the english one as "backup.zip". WHY???

Thank you for any proposals!

I struggled some time with download links, no matter what filename I specified in the download="filename" attribute, the file I got was always download(1..n). Now I put all into one zip archive. I have a german and an english page, the link is: <p>Alle Skripte hier zusammen in einem ZIP: <a href="../downloads/backup.zip" title="Download Backup Skripte" class="ilbutton" download>backup.zip</a></p> in der deutschen und <p>Here all together in one zip file: <a href="../downloads/backup.zip" title="Download Backup Skripts" class="ilbutton" download>backup.zip</a></p> . I can't see a difference except the language. But: the download of the german link comes as "download.zip". The one from the english one as "backup.zip". WHY??? Thank you for any proposals!

所有回覆 (1)

Ignore this post. I think, i've found the evil. It is the perl module HTML::TreeBuilder, which expands the download to download="download". What a crap.