TechWiz77
TechWiz77

Reputation: 69

How to add a downloadable folder to my html document?

I have a small question on how to add a folder that can be downloaded from my website. Would I call the file like how I normally call everything else (pictures, videos) and just make an: <a href="LOCATION-OF-MY-FOLDER"</a> and the browser will automatically give the option of downloading? Or is there another actual process?

Upvotes: 1

Views: 19003

Answers (3)

user3466219
user3466219

Reputation:

You can't download folders without linking them, but what you can do is create some type of compressed file (.zip, .rar. 7z) and put the folder inside of it. and make it

<a href="LOCATION-OF-MY-FOLDER.zip">
    My Folder
</a>

Upvotes: 4

Joshua
Joshua

Reputation: 6241

Yes it's possible. However, it is not just for a folder, but for a file type. There are two solutions were provided in answer to this Stack Overflow question. Try out the top two ranked answers.

Upvotes: 1

osman
osman

Reputation: 2459

I don't think you can create a link to download the directory without creating a zipfile of that directory and making that available to download.

Upvotes: 0

Related Questions