Display HTML file that's in a zip directory on a server in a browser?

I’m curious if this is possible. I’m trying this on a MacBook running Yosemite with localhost (AMP).

In my localhost within a browser, is it possible to get a response for the contents of a .zip’d directory?

Inside that .zip it might have a file called main.html, a CSS file in a stylesheet directory, and some JavaScript in a js diretory.

I would like to be able to browse to the localhost / root of the folder and have it show the main.html or index.html that’s .zip’d up.

Thanks

The only way this will work is if you have something on the server end that extracts the contents of the zip file to a temporary directory so you can then browse the temporary directory contents and view the files. Your browser is always going to want to download the zip file.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.