Publishes all given files as download link. The generated links are
returned. They are only valid for a certain number of days (parameterdays
).
The function works by creating or reusing a layer of type download.
If the parameter layer
is not given, a new layer is created on
each call (which in turn creates a different download link), otherwise
the given layer is used (and the download links are preserved).