Home > Web Front-end > HTML Tutorial > How can I create a hyperlink in HTML to download an apk file? _html/css_WEB-ITnose

How can I create a hyperlink in HTML to download an apk file? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:16
Original
2758 people have browsed it

I wrote a set of HTML static websites, which were published using iis. After uploading them, I found that the downloaded hyperlink was connected to the apk file, and the display was
The page could not be found. The page you are searching for may be Has been removed, renamed, or is temporarily unavailable.
The download connection cannot be opened, but if you change the apk file to a rar file, you can download it. Please tell me how to solve it, thank you. . .


Reply to the discussion (solution)

Just connect

<a href="/Files/1.apk">Test</a>
Copy after login

In the "root" of your IIS "deployed project" Just create a "Files" folder under the directory, put your Apk file in it, and point it to it with Anchor.

Can't you compress the apk file into a rar file? Haha

Go and add the mime header

I want to ask for a ride.
How to display the content of a TXT text on the page instead of a download link. ? ?

Just use to download. Don’t use absolute paths, use equivalent paths.

Connect Just do it
C# code?1<a href="/Files/1.apk">Test</a>
Just create a "Files" in the "root directory" of your IIS "deployed project" "folder, put your Apk file in it, and just point it with Anchor.


Hello, I have no problem testing on this machine, but I can’t find the file when I click download on the local area network. The download window pops up on this machine, how to solve it, thank you

folder It’s a permission issue, just right-click on properties and add EveryOne

Quoting the reply from newegg2009 on the 1st floor: Just connect
C# code?1Test< /a>
Just create a "Files" folder "under the root directory" of your IIS "deployed project", put your Apk file in it, and point it to it with Anchor.
Hello, I have no problem testing on this machine, but I can’t find the file when I click download on the local area network. The download window pops up on this machine, how to solve it, thank you
……

Open Internet Service Manager Internet Service Manager-->Website Properties-->HTTP Header (MIME Type)-->New
Extension.apk Type (MIME) application/vnd.android

I would like to ask for a ride.
How to display the content of a TXT text on the page instead of a download link. ? ?


The simplest method: just change the suffix TXT to html.

Only IE9 doesn't work, it's zip, other browsers are apk, how to solve it?

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template