P粉3365367062023-09-05 14:27:03
ZIP files are not directories, but files themselves.
It is strongly recommended that you unzip the ZIP file into a folder. For example, you can unzip myfile.zip
to the myfile
directory on your server and then use the following code:
<a href="file1.pdf" target="_new1">file1</a> <a href="myfile\file2.pdf" target="_new2">file2</a> <a href="myfile\file3.pdf" target="_new3">file3</a>
If you are unwilling to do this, you can try using a Javascript library to decompress the file. I searched online and found this: JSZIP
You can try reading the documentation and adding JavaScript to your HTML to extract the ZIP file you can get.