Commit 6017f6d 1 parent f6e645e commit 6017f6d Copy full SHA for 6017f6d
File tree 1 file changed +6
-0
lines changed
packages/nextcloud/lib/src/webdav
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ class WebDavClient {
142
142
143
143
/// Request to put a new file at [path] with [localData] as content.
144
144
///
145
+ /// Setting [contentLength] is important because some web servers will consider the file to be empty otherwise.
146
+ /// It will be required in the next major release.
147
+ ///
145
148
/// See:
146
149
/// * [putStream] for a complete operation executing this request.
147
150
http.BaseRequest putStream_Request (
@@ -187,6 +190,9 @@ class WebDavClient {
187
190
/// [created] sets the date when the file was created on the server.
188
191
/// [contentLength] sets the length of the [localData] that is uploaded.
189
192
/// [onProgress] can be used to watch the upload progress. Possible values range from 0.0 to 1.0. [contentLength] needs to be set for it to work.
193
+ /// Setting [contentLength] is important because some web servers will consider the file to be empty otherwise.
194
+ /// It will be required in the next major release.
195
+ ///
190
196
/// See:
191
197
/// * http://www.webdav.org/specs/rfc2518.html#METHOD_PUT for more information.
192
198
/// * [putStream_Request] for the request sent by this method.
You can’t perform that action at this time.
0 commit comments