If you prefer not to use your username and WebDAV password in a script, you can also upload to Research Drive via a folder with a public link.

See for more information also the page; Share via a public link

Environment URL can be different

When you're using a Research Drive Branded environment, the Research Drive URL can be different in your case.

In this example we using the Research Drive Community Edition. Replace in your case the web address to the environment that you are using.
- For example; https://researchdrive.surfsara.nl or look up here: Institutional instances



Step-by-step

1. Create a folder with public link via the sharing menu, click "Public links".


2. Next click 'Create public link'. The following popup screen will appear depending.

  1. Check the box 'allow editing'
  2. Set a password to enable 'password protection'


(Optional) You can also set an expiration date, the link will be expired after this date.


3. Copy the public link to your clipboard

4. Copy the string at the end of the public link, this is the username for your WebDAV connection; https://researchdrive.surfsara.nl/index.php/s/pHMo7ST55BTxRoX

Notice! As you can see in the line below, the webdav endpoint for a public link is different!


5. Now you can access your share with use of the public link and your password



curl


curl -u publieke_link_string:password -X PROPFIND "https://researchdrive.surfsara.nl/public.php/webdav/"


curl -u pHMo7ST55BTxRoX:MyPassword -X PROPFIND "https://researchdrive.surfsara.nl/public.php/webdav/"
rclone
rclone config
  1. Select New
  2. Enter a name to refer to your new remote
  3. For Storage, select webdav
  4. Enter the URL: https://researchdrive.surfsara.nl/public.php/webdav/
  5. For Vendor, select ownCloud
  6. For User, enter the publieke_link_string: pHMo7ST55BTxRoX
  7. Enter the password, leave empty when there is no password
  8. For bearer_token, leave empty
  9. For Advanced Config, select 'no'

You should end up with a config like this:

Remote config
--------------------
[public_webdav_example]
type = webdav
url = https://researchdrive.surfsara.nl/public.php/webdav/
vendor = owncloud
user = pHMo7ST55BTxRoX
pass = *** ENCRYPTED ***
cyberduck



For downloading from a public share, you need the public webdav endpoint.
Example;

curl -u "<share_id>:<password>" "https://researchdrive.surfsara.nl/public.php/webdav" -o file.txt