How to turn ZIP file into a HTML code and then form it into a button?

  • 1
  • Question
  • Updated 7 years ago
  • Answered
how can i make a zip file into a html using something that can generate the code for me? and then how to form it into a button that say dowload? please help?
Photo of chris

chris

  • 17 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hi Chris,

The zip file would have to contain the HTML already and when opened this would enable you to access the HTML content.

If you have got this from some source then there should be some instruction. there may also be instructions included in the zip file which may become apparent after unzipping.

Please be very careful of viruses and malware in zipped files from unknown sources.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hello Chris,

If you want to turn a Zip folder into an HTML file, as Gop has said, the Zip folder/file would need to have an HTML file in it already.

However, if you want to allow people to download the Zip file to their computers, you can simply link to it, and if you want it to happen when they click a button, just insert this into an HTML widget:


<button onclick="window.location='resources/zip_file.zip';">Download Zip File</button>



Make sure you change the resources/zip_file.zip to the actual file path and name. If it is in your Yola file manager (resources/) then you can keep the resources/ and just change zip_file.zip to the actual file name.

This code will pop up the Download File box. It shouldn't redirect the page, though.

I hope this is helpful.