mirror of https://github.com/perkeep/perkeep.git
71090f7c80
We want to add a feature for clients (the web UI), where they can select a bunch of files and ask the server for a zip archive of all these files. This CL modifies the DownloadHandler so it does exactly that upon reception of a POST request with a query parameter of the form files=sha1-foo,sha1-bar,sha1-baz This CL also adds a new button to the contextual sidebar of the web UI, that takes care of sending the download request to the server. known limitations: only permanodes with file as camliContent are accepted as a valid selection (i.e. no sets, or static-dirs, etc) for now. Implementation detail: We're creating an ephemeral DOM form on the fly to send the request. The reason is: if we sent it as a Go http request, we'd have to read the response manually and then we'd have no way of writing it to disk. If we did it with an xhr, we could write the response to disk by creating a File or Blob and then using URL.createObjectURL(), but we'd have to keep the response in memory while doing so, which is unacceptable for large enough archives. Fixes #899 Change-Id: I104f7c5bd10ab3369e28d33752380dd12b5b3e6b |
||
---|---|---|
.. | ||
ui | ||
.gitignore | ||
README | ||
camlistored.go | ||
camlistored_unix.go | ||
run_test.go |
README
This is the main Camlistore server. See also: - The storage interface is in <root>/pkg/blobserver - The storage implementations are under that e.g. <root>/pkg/blobserver/localdisk - The HTTP handlers are implemented in <root>/pkg/blobserver/handlers - The UI code is in <root>/server/camlistored/ui