It's easy to create a public link to a file or folder in the CloudStor interface. But what if you have lots of files in nested folders that you want to make publicly accessible? Yes, you can share the parent folder, but how do you create direct public links to files and folders inside the parent folder without generating new share links for every resource.
This is a public link to a shared folder that contains the OCRd text of digitised journals from Trove:
https://cloudstor.aarnet.edu.au/plus/s/QOmnqpGQCNCSC2h
If we want to open a folder that is a child of the shared folder, we add a path
parameter that points to the child folder, in this case angry-penguins-broadsheet-nla.obj-320790312
(the %2F
is a url encoded forward slash):
If we want to download a zipped version of the child folder, we just add download
to the url:
If we want to open a folder that is a child of a child we just extend the path
value (encoding the forward slashes as %2F). This goes to angry-penguins-broadsheet-nla.obj-320790312/texts
in the parent folder:
If we want to download a single file in a child folder we can just add the filename to the path, in this case nla.obj-320790312-issues.csv
.
Alternatively, we can add the files
parameter and set it to the name of the file:
If we want to download a selection of files from a folder rather than the whole folder, we can also use the files
parameter. This link downloads two files from the texts
folder, angry-penguins-broadsheet-collection-no-1-nla.obj-320791009.txt
and angry-penguins-broadsheet-collection-no-2-nla.obj-320791023.txt
, packaged as a single zip
file. Note the use of []
with the files
parameter to pass multiple values: