Reputation: 69
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
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
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
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