docs/html/put.html

changeset 282
3070d72f54af
parent 273
c743721d566f
child 283
0e36bb75a732
equal deleted inserted replaced
281:ddb5e8f2a43d 282:3070d72f54af
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 &lt;key&gt;] [-L &lt;lock&gt;] &lt;url&gt; &lt;file&gt;</code></strong></p> 68 <p><strong><code>put [-pcR] [-k &lt;key&gt;] [-L &lt;lock&gt;] &lt;url&gt; &lt;file&gt;</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 &lt;key&gt;</code></strong> use the specified key for encryption. The key must be configured in the config.xml file</p> 74 <p><strong><code>-k &lt;key&gt;</code></strong> use the specified key for encryption. The key must be configured in the config.xml file</p>
75 <p><strong><code>-L &lt;lock&gt;</code></strong> use a lock token. See <a href="./lock.html">dav lock</a></p> 75 <p><strong><code>-L &lt;lock&gt;</code></strong> use a lock token. See <a href="./lock.html">dav lock</a></p>

mercurial