srri-zz / OpenRelay

Peer based web hosting
peer.to/peer
16 stars 0 forks source link

Make ZIP support work with directories #11

Closed amanjeev closed 6 years ago

amanjeev commented 12 years ago

This is currently not working. Make it work.

amanjeev commented 12 years ago

Need to read up more on the UUID. Directory creation may not be needed and directory_name/filename could be possible. Roberto, please correct me if I am wrong.

ghost commented 12 years ago

@amanjeev Exactly, the directory name is part of the resources name itself, directories need not to be actually created on the node storage.

Changeset: bdd47699bdad1df3290258616fd29651053c9cb5 preserves the file's path from the zip file so that it can be added as part of the resource's final name and changeset 72a892c02db7cfd621b55ad0f37e33dc03448909 make the HTML filter aware of the HTML's path in the zip file and use that path as the base prefix when updating the references to CSS/images, etc.