65 <!-- begin content --> |
65 <!-- begin content --> |
66 <div class="content"> |
66 <div class="content"> |
67 <div id="header"> |
67 <div id="header"> |
68 <h1 class="title">dav put</h1> |
68 <h1 class="title">dav put</h1> |
69 </div> |
69 </div> |
70 <p><strong><code>put [-pcR] [-k <key>] [-L <lock>] <url> <file></code></strong></p> |
70 <p><strong><code>dav put [-pcR] [-k <key>] [-L <lock>] <url> <file></code></strong></p> |
71 <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> |
71 <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> |
72 <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> |
72 <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> |
73 <p><strong><code>-p</code></strong> disable file name encryption and decryption</p> |
73 <p><strong><code>-p</code></strong> disable file name encryption and decryption</p> |
74 <p><strong><code>-c</code></strong> enable file name and content encryption</p> |
74 <p><strong><code>-c</code></strong> enable file name and content encryption</p> |
75 <p><strong><code>-R</code></strong> upload directory</p> |
75 <p><strong><code>-R</code></strong> upload directory</p> |