64 |
64 |
65 <!-- begin content --> |
65 <!-- begin content --> |
66 <div class="content"> |
66 <div class="content"> |
67 <h1 id="dav-put">dav put</h1> |
67 <h1 id="dav-put">dav put</h1> |
68 <p><strong><code>put [-pcR] [-k <key>] [-L <lock>] <url> <file></code></strong></p> |
68 <p><strong><code>put [-pcR] [-k <key>] [-L <lock>] <url> <file></code></strong></p> |
69 <p>Uploads a file or a directory. When uploading a file and the url points to 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 created.</p> |
69 <p>Uploads a file or a directory. When uploading a file while the url points to 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 created.</p> |
70 <p>When uploading a directory, you need to specify the -R option. It uploads all files in the directory to the specified url, but it does not create a collection for the directory itself.</p> |
70 <p>When uploading a directory, you need to specify the <strong><code>-R</code></strong> option. It uploads all files in the directory to the specified url, but it does not create a collection for the directory itself. You may use <a href="./mkdir.html">dav mkdir</a> to create this collection beforehand.</p> |
71 <p><strong><code>-p</code></strong> disable file name encryption and decryption</p> |
71 <p><strong><code>-p</code></strong> disable file name encryption and decryption</p> |
72 <p><strong><code>-c</code></strong> enable file name and content encryption</p> |
72 <p><strong><code>-c</code></strong> enable file name and content encryption</p> |
73 <p><strong><code>-R</code></strong> upload directory</p> |
73 <p><strong><code>-R</code></strong> upload directory</p> |
74 <p><strong><code>-k <key></code></strong> use the specified key for encryption. The key must be configured in the config.xml file</p> |
74 <p><strong><code>-k <key></code></strong> use the specified key for encryption. The key must be configured in the config.xml file</p> |
75 <p><strong><code>-L <lock></code></strong> use a lock token. See <a href="./lock.html">dav lock</a></p> |
75 <p><strong><code>-L <lock></code></strong> use a lock token. See <a href="./lock.html">dav lock</a></p> |