blob: 2c36e626e3559e6ee7e685d601f5b7b522a3abea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<!-- TABLE OF CONTENTS -->
## Table of Contents
* [Usage](#usage)
* [License](#license)
* [Contact](#contact)
<!-- USAGE EXAMPLES -->
## Usage
This is the most basic method of creating a downloadable file, <a href="http://forward.s1n.pw/download-test">demo</a>.
```html
<a href="/path/to/file/examplefile2.jpg" download>Link text</a>
```
<br></br>
You can also **add text** into the `<a>` tag **to create a button.**
```html
<a href="/path/to/file/examplefile2.jpg" download>Link text</a>
```
<br></br>
Or you can **rename the downloadable file** using the `download=""` variable.
```html
<a href="/path/to/file/examplefile2.jpg" download="August 31 2016 Sales Report">Download the report</a>
```
<!-- LICENSE -->
## License
Distributed under the MIT License. See [`LICENSE`](./LICENSE) for more information.
<!-- CONTACT -->
## Contact
s1nical - [@s1nical](https://twitter.com/s1nical) - [email protected]
Project Link: [https://github.com/s1nical/download-test](https://github.com/s1nical/download-test)
|