1 dav put |
1 dav put |
2 ======= |
2 ======= |
3 |
3 |
4 **`put [-pcR] [-k <key>] [-L <lock>] <url> <file>`** |
4 **`put [-pcR] [-k <key>] [-L <lock>] <url> <file>`** |
5 |
5 |
6 Uploads a file or a directory. When uploading a file and the url points to |
6 Uploads a file or a directory. When uploading a file while the url points to |
7 an existing collection, a resource inside this collection with the file's name is created. When the url points to a non-existing resource, the resource is |
7 an existing collection, a resource inside this collection with the file's name is created. When the url points to a non-existing resource, the resource is |
8 created. |
8 created. |
9 |
9 |
10 When uploading a directory, you need to specify the -R option. It uploads |
10 When uploading a directory, you need to specify the **`-R`** option. It uploads |
11 all files in the directory to the specified url, but it does not create a |
11 all files in the directory to the specified url, but it does not create a |
12 collection for the directory itself. |
12 collection for the directory itself. |
|
13 You may use [dav mkdir][1] to create this collection beforehand. |
13 |
14 |
14 **`-p`** disable file name encryption and decryption |
15 **`-p`** disable file name encryption and decryption |
15 |
16 |
16 **`-c`** enable file name and content encryption |
17 **`-c`** enable file name and content encryption |
17 |
18 |
18 **`-R`** upload directory |
19 **`-R`** upload directory |
19 |
20 |
20 **`-k <key>`** use the specified key for encryption. The key must be configured in |
21 **`-k <key>`** use the specified key for encryption. The key must be configured in |
21 the config.xml file |
22 the config.xml file |
22 |
23 |
23 **`-L <lock>`** use a lock token. See [dav lock][1] |
24 **`-L <lock>`** use a lock token. See [dav lock][2] |
24 |
25 |
25 [1]: ./lock.html |
26 [1]: ./mkdir.html |
|
27 [2]: ./lock.html |
26 |
28 |
27 |
29 |