You can easily use download attribute in <a></a> tags to force the download.
Generally we use a tag to redirect to another location. But it is also useful for downloading. It supports the filename assignment.
1 | <a href="https://laravelnepal.com/wp-content/uploads/2017/07/f19923602d336c7854496c5004beca88-470x294.jpg" download="filename.jpg">Download</a> |
Example: Download
Everything is awesome.
Be First to Comment