|
@@ -226,13 +226,13 @@ NSString const *OCWebDAVModificationDateKey = @"modificationdate";
|
|
|
"<D:getetag/>"
|
|
|
"<oc:fileid/>"
|
|
|
"<permissions xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
- "<D:getcontenttype/><nc:is-encrypted/>"
|
|
|
+ "<D:getcontenttype/>"
|
|
|
+ "<nc:is-encrypted/>"
|
|
|
"<nc:has-preview/>"
|
|
|
"</D:prop>"
|
|
|
"</D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
|
|
|
|
-
|
|
|
OCHTTPRequestOperation *operation = [self mr_operationWithRequest:request onCommunication:sharedOCCommunication success:success failure:failure];
|
|
|
[self setRedirectionBlockOnDatataskWithOCCommunication:sharedOCCommunication andSessionManager:sharedOCCommunication.networkSessionManager];
|
|
|
[operation resume];
|
|
@@ -248,10 +248,24 @@ NSString const *OCWebDAVModificationDateKey = @"modificationdate";
|
|
|
NSMutableURLRequest *request = [self requestWithMethod:_requestMethod path:path parameters:nil timeout:k_timeout_webdav];
|
|
|
|
|
|
[request setValue: depth forHTTPHeaderField: @"Depth"];
|
|
|
- [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\"><D:prop><D:resourcetype/><D:getlastmodified/><size xmlns=\"http://owncloud.org/ns\"/><favorite xmlns=\"http://owncloud.org/ns\"/><id xmlns=\"http://owncloud.org/ns\"/><D:getcontentlength/><D:getetag/><oc:fileid/><permissions xmlns=\"http://owncloud.org/ns\"/><D:getcontenttype/><nc:is-encrypted/><nc:has-preview/></D:prop></D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
+ [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\">"
|
|
|
+ "<D:prop>"
|
|
|
+ "<D:resourcetype/>"
|
|
|
+ "<D:getlastmodified/>"
|
|
|
+ "<size xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<favorite xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<id xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<D:getcontentlength/>"
|
|
|
+ "<D:getetag/>"
|
|
|
+ "<oc:fileid/>"
|
|
|
+ "<permissions xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<D:getcontenttype/>"
|
|
|
+ "<nc:is-encrypted/>"
|
|
|
+ "<nc:has-preview/>"
|
|
|
+ "</D:prop>"
|
|
|
+ "</D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
|
|
|
|
-
|
|
|
OCHTTPRequestOperation *operation = [self mr_operationWithRequest:request onCommunication:sharedOCCommunication withUserSessionToken:token success:success failure:failure];
|
|
|
[self setRedirectionBlockOnDatataskWithOCCommunication:sharedOCCommunication andSessionManager:sharedOCCommunication.networkSessionManager];
|
|
|
[operation resume];
|