gerow / sbserv

A tiny file server for serving media
BSD 2-Clause "Simplified" License
9 stars 1 forks source link

Adding Download buttons and download all files option #21

Closed seansaleh closed 8 years ago

seansaleh commented 8 years ago

Resolves #12 and is a better version of #18 Makes three changes:

  1. Adds a download button to all files that explicitly downloads the file (using HTML download tag). This helps set filenames for certain files that browsers get confused for
  2. Sets the files name when a download is downloaded as a folder (I took a shortcut and just did it when clicking next to a folder, not the top bar, I didn't want to pipe through folder name in go)
  3. Adds a button that uses JS to click all of the file download buttons in a folder. This makes it easy to download all files individually inside a folder if you don't want it as a zip. This is useful for really large folders that you want to download incrementally.
seansaleh commented 8 years ago

This commit brought to you by windows subsystem for linux https://github.com/Microsoft/BashOnWindows

gerow commented 8 years ago

Looks good to me. Feel free to push once you decide to make (or not make) the changes I suggested.