|
@@ -2718,15 +2718,12 @@
|
|
|
- (void)createLinkRichdocuments:(NSString *)serverPath fileID:(NSString *)fileID onCommunication:(OCCommunication *)sharedOCComunication successRequest:(void(^)(NSHTTPURLResponse *response, NSString *redirectedServer))successRequest failureRequest:(void(^)(NSHTTPURLResponse *response, NSError *error, NSString *redirectedServer)) failureRequest {
|
|
|
|
|
|
serverPath = [serverPath stringByAppendingString:k_url_create_link_mobile_editor];
|
|
|
- //serverPath = [NSString stringWithFormat:@"%@/%@", serverPath, fileID];
|
|
|
//serverPath = [serverPath stringByAppendingString:@"?format=json"];
|
|
|
- serverPath = [NSString stringWithFormat:@"%@?fileid=%@", serverPath, fileID];
|
|
|
- serverPath = [serverPath stringByAppendingString:@"&format=json"];
|
|
|
|
|
|
OCWebDAVClient *request = [[OCWebDAVClient alloc] init];
|
|
|
request = [self getRequestWithCredentials:request];
|
|
|
|
|
|
- [request createLinkRichdocuments:serverPath onCommunication:sharedOCComunication success:^(NSHTTPURLResponse *operation, id response) {
|
|
|
+ [request createLinkRichdocuments:serverPath fileID:fileID onCommunication:sharedOCComunication success:^(NSHTTPURLResponse *operation, id response) {
|
|
|
|
|
|
//Return success
|
|
|
successRequest(response, request.redirectedServer);
|