|
|
|
|
@@ -34,7 +34,7 @@ connect to ownCloud from your mobile device using WebDAV. `WebDAV Navigator`_ is
|
|
|
|
|
a good (proprietary) app for `Android devices`_, `iPhones`_, and `BlackBerry
|
|
|
|
|
devices`_. The URL to use on these is::
|
|
|
|
|
|
|
|
|
|
example.com/owncloud/remote.php/dav
|
|
|
|
|
example.com/owncloud/remote.php/dav/files/USERNAME/
|
|
|
|
|
|
|
|
|
|
WebDAV Configuration
|
|
|
|
|
--------------------
|
|
|
|
|
@@ -60,7 +60,7 @@ Nautilus File Manager
|
|
|
|
|
Use the ``davs://`` protocol to connect the Nautilus file manager to your
|
|
|
|
|
ownCloud share::
|
|
|
|
|
|
|
|
|
|
davs://example.com/owncloud/remote.php/dav
|
|
|
|
|
davs://example.com/owncloud/remote.php/dav/files/USERNAME/
|
|
|
|
|
|
|
|
|
|
.. note:: If your server connection is not HTTPS-secured, use `dav://` instead
|
|
|
|
|
of `davs://`.
|
|
|
|
|
@@ -74,7 +74,7 @@ Accessing Files with KDE and Dolphin File Manager
|
|
|
|
|
To access your ownCloud files using the Dolphin file manager in KDE, use
|
|
|
|
|
the ``webdav://`` protocol::
|
|
|
|
|
|
|
|
|
|
webdav://example.com/owncloud/remote.php/dav
|
|
|
|
|
webdav://example.com/owncloud/remote.php/dav/files/USERNAME/
|
|
|
|
|
|
|
|
|
|
.. image:: ../images/webdav_dolphin.png
|
|
|
|
|
:alt: screenshot of configuring Dolphin file manager to use WebDAV
|
|
|
|
|
@@ -94,7 +94,7 @@ You can create a permanent link to your ownCloud server:
|
|
|
|
|
|
|
|
|
|
* Server: The ownCloud domain name, for example **example.com** (without
|
|
|
|
|
**http://** before or directories afterwards).
|
|
|
|
|
* Folder -- Enter the path ``owncloud/remote.php/dav``.
|
|
|
|
|
* Folder -- Enter the path ``owncloud/remote.php/dav/files/USERNAME/``.
|
|
|
|
|
#. (Optional) Check the "Create icon checkbox" for a bookmark to appear in the
|
|
|
|
|
Places column.
|
|
|
|
|
#. (Optional) Provide any special settings or an SSL certificate in the "Port &
|
|
|
|
|
@@ -140,11 +140,11 @@ automatically every time you log in to your Linux computer.
|
|
|
|
|
6. Add your ownCloud login credentials to the end of the ``secrets`` file,
|
|
|
|
|
using your ownCloud server URL and your ownCloud username and password::
|
|
|
|
|
|
|
|
|
|
example.com/owncloud/remote.php/dav <username> <password>
|
|
|
|
|
example.com/owncloud/remote.php/dav/files/USERNAME/ <username> <password>
|
|
|
|
|
|
|
|
|
|
7. Add the mount information to ``/etc/fstab``::
|
|
|
|
|
|
|
|
|
|
example.com/owncloud/remote.php/dav /home/<username>/owncloud
|
|
|
|
|
example.com/owncloud/remote.php/dav/files/USERNAME/ /home/<username>/owncloud
|
|
|
|
|
davfs user,rw,auto 0 0
|
|
|
|
|
|
|
|
|
|
8. Then test that it mounts and authenticates by running the following
|
|
|
|
|
@@ -210,7 +210,7 @@ To access files through the Mac OS X Finder:
|
|
|
|
|
For example, the URL used to connect to the ownCloud server
|
|
|
|
|
from the Mac OS X Finder is::
|
|
|
|
|
|
|
|
|
|
https://example.com/owncloud/remote.php/dav
|
|
|
|
|
https://example.com/owncloud/remote.php/dav/files/USERNAME/
|
|
|
|
|
|
|
|
|
|
.. image:: ../images/osx_webdav2.png
|
|
|
|
|
|
|
|
|
|
@@ -254,12 +254,12 @@ the drive:
|
|
|
|
|
2. Enter the following line in the command prompt to map to the computer Z
|
|
|
|
|
drive::
|
|
|
|
|
|
|
|
|
|
net use Z: https://<drive_path>/remote.php/dav /user:youruser
|
|
|
|
|
net use Z: https://<drive_path>/remote.php/dav/files/USERNAME/ /user:youruser
|
|
|
|
|
yourpassword
|
|
|
|
|
|
|
|
|
|
where <drive_path> is the URL to your ownCloud server.
|
|
|
|
|
|
|
|
|
|
For example: ``net use Z: https://example.com/owncloud/remote.php/dav
|
|
|
|
|
For example: ``net use Z: https://example.com/owncloud/remote.php/dav/files/USERNAME/
|
|
|
|
|
/user:youruser yourpassword``
|
|
|
|
|
|
|
|
|
|
The computer maps the files of your ownCloud account to the drive letter Z.
|
|
|
|
|
@@ -284,11 +284,11 @@ To map a drive using the Microsoft Windows Explorer:
|
|
|
|
|
the drop-down menu.
|
|
|
|
|
3. Choose a local network drive to which you want to map ownCloud.
|
|
|
|
|
4. Specify the address to your ownCloud instance, followed by
|
|
|
|
|
**/remote.php/dav**.
|
|
|
|
|
**/remote.php/dav/files/USERNAME/**.
|
|
|
|
|
|
|
|
|
|
For example::
|
|
|
|
|
|
|
|
|
|
https://example.com/owncloud/remote.php/dav
|
|
|
|
|
https://example.com/owncloud/remote.php/dav/files/USERNAME/
|
|
|
|
|
|
|
|
|
|
.. note:: For SSL protected servers, check **Reconnect at logon** to ensure
|
|
|
|
|
that the mapping is persistent upon subsequent reboots. If you want to
|
|
|
|
|
@@ -330,7 +330,7 @@ different connection type if you plan to use SSL. For example:
|
|
|
|
|
3. Use the 'More Options' drop-down menu to add the rest of your WebDAV URL into
|
|
|
|
|
the 'Path' field. For example:
|
|
|
|
|
|
|
|
|
|
``remote.php/dav``
|
|
|
|
|
``remote.php/dav/files/USERNAME/``
|
|
|
|
|
|
|
|
|
|
Now Cyberduck enables file access to the ownCloud server.
|
|
|
|
|
|
|
|
|
|
@@ -449,29 +449,29 @@ To create a folder with the current date as name:
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
$ curl -u user:pass -X MKCOL "https://example.com/owncloud/remote.php/dav/$(date '+%d-%b-%Y')"
|
|
|
|
|
$ curl -u user:pass -X MKCOL "https://example.com/owncloud/remote.php/dav/files/USERNAME/$(date '+%d-%b-%Y')"
|
|
|
|
|
|
|
|
|
|
To upload a file ``error.log`` into that directory:
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
$ curl -u user:pass -T error.log "https://example.com/owncloud/remote.php/dav/$(date '+%d-%b-%Y')/error.log"
|
|
|
|
|
$ curl -u user:pass -T error.log "https://example.com/owncloud/remote.php/dav/files/USERNAME/$(date '+%d-%b-%Y')/error.log"
|
|
|
|
|
|
|
|
|
|
To move a file:
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
$ curl -u user:pass -X MOVE --header 'Destination: https://example.com/owncloud/remote.php/dav/target.jpg' https://example.com/owncloud/remote.php/dav/source.jpg
|
|
|
|
|
$ curl -u user:pass -X MOVE --header 'Destination: https://example.com/owncloud/remote.php/dav/files/USERNAME/target.jpg' https://example.com/owncloud/remote.php/dav/files/USERNAME/source.jpg
|
|
|
|
|
|
|
|
|
|
To get the properties of files in the root folder:
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
$ curl -X PROPFIND -H "Depth: 1" -u user:pass https://example.com/owncloud/remote.php/dav/ | xml_pp
|
|
|
|
|
$ curl -X PROPFIND -H "Depth: 1" -u user:pass https://example.com/owncloud/remote.php/dav/files/USERNAME/ | xml_pp
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<d:multistatus xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:s="http://sabredav.org/ns">
|
|
|
|
|
<d:response>
|
|
|
|
|
<d:href>/owncloud/remote.php/dav/</d:href>
|
|
|
|
|
<d:href>/owncloud/remote.php/dav/files/USERNAME/</d:href>
|
|
|
|
|
<d:propstat>
|
|
|
|
|
<d:prop>
|
|
|
|
|
<d:getlastmodified>Tue, 13 Oct 2015 17:07:45 GMT</d:getlastmodified>
|
|
|
|
|
@@ -486,7 +486,7 @@ To get the properties of files in the root folder:
|
|
|
|
|
</d:propstat>
|
|
|
|
|
</d:response>
|
|
|
|
|
<d:response>
|
|
|
|
|
<d:href>/owncloud/remote.php/dav/welcome.txt</d:href>
|
|
|
|
|
<d:href>/owncloud/remote.php/dav/files/USERNAME/welcome.txt</d:href>
|
|
|
|
|
<d:propstat>
|
|
|
|
|
<d:prop>
|
|
|
|
|
<d:getlastmodified>Tue, 13 Oct 2015 17:07:35 GMT</d:getlastmodified>
|
|
|
|
|
|