Ask coding questions

← Back to all posts
How to make a zip file download button in html?
Aarushiswinnery

I wanted to know how to make the button to download button with zip file as I am making a site with a lot of python codes(by me) compressed in a zip and be downloadable.
Please help me as I have been stuck on this question for months and I haven't found the solution yet.

Comments
hotnewtop
cjmatthy09

Have you tried something like this?

If you're using Flask, you should be able to throw Python variables inside of HTML code, to have an adjustable ZIP download.

Aarushiswinnery

@cjmatthy09 Thanks bro, will try the code

Aarushiswinnery

@cjmatthy09 It didn't work bro

cjmatthy09

can you send me your code/repl? @Aarushiswinnery