Coder Social home page Coder Social logo

leowebdav's Issues

Upload and download progress??

hello , first of all thank you for your code , and i'm just asking how i can get the download and the upload progress of a file ??

thanks

Geting The LeoWebDavItem when the upload finish

Hello , i'm trying to get the finished uploaded files as a leowebdavitem , so when i finish the upload and on the callback method :
-(void)request:(LEOWebDAVRequest *)aRequest didSucceedWithResult:(id)result
i need to get the result as a leowebdavitem , this is possible or not ??

thanks

Requests generate 2 connections

When making a request, it is performed twice, the first time generating the authorisation request, the second completing as expected. This is a big problem when uploading large files, as the file needs to be sent twice to complete the transaction.

The order of execution is as follows:

  1. A new request is created and sent to the server in full.
  2. The request generates an auth challenge, which is sent back to the client
  3. The client supplies the auth details and completes the challenge
  4. The request restarts and then completes correctly.
  5. The completed callbacks are fired on the client.

2 questions :)

First of all, thanks for sharing your code..
My questions are about the LEOWebDAVMoveRequest method...
It seems it's not implemented, right?
And how should be the Rename method?
I m very new to webdav...
Regards.

stringByReplacingPercentEscapesUsingEncoding called twice

Calling stringByReplacingPercentEscapesUsingEncoding twice can mangle string or return nil if original string contains '%' sign

  1. LEOWebDAVParser
    _currentItem.href = [_currentString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

  2. LEOWebDAVItem
    return [[href lastPathComponent] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

File with name, for example, "File%Name", results in displayName equal to nil.

Problem with encoded URLS

Hello,

I'm using your library (very good job) but I have problems with Spanish characters like ó, ò, á, à, etc.

If you want to solve this problem for other people the changes are:
LEOWebDAVParser.m :
if ([elementName isEqualToString:@"href"]) { // _currentItem.href = [_currentString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; _currentItem.href = [_currentString stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; //good line }

and

    `NSString *encodedString = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(nil, (CFStringRef)item.href, NULL, (CFStringRef)@"óòéèáíàú",kCFStringEncodingISOLatin1));

        LEOWebDAVPropertyRequest *request=[[LEOWebDAVPropertyRequest alloc] initWithPath:encodedString];
        [request setDelegate:self];
        [client enqueueRequest:request];``

I put this comment here because I don't know where is the correct site.

help plz

i'm newbie IOS developper
just i'm asking where i can put my url ,login and password
i want to connect to owncloud app

thanks for help

LeoWebDAVRequest.m line 255

Crashlytics error:

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x2000000c

-[LEOWebDAVRequest connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]

respondsToSelector:

Problem with upload request

I have a problem when I use the uploadRequest and I don't understand why it's not working. This is my code:

-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{

LEOWebDAVUploadRequest *uploadReq = [[LEOWebDAVUploadRequest alloc] initWithPath:@"webdav/web"]; 

NSData *storeData = [NSData dataWithContentsOfURL: url];
[uploadReq setDelegate:self];
//[uploadReq setDataMimeType:@"image/jpg"];
[uploadReq setData:storeData];
[client enqueueRequest:uploadReq];
return YES;
}

but it give me this error:

upload len:37433 didReceivedProgress: <NSMutableURLRequest: 0x15e807e0>**** 32768 **** upload len:37433 didReceivedProgress: <NSMutableURLRequest: 0x15e7fa30> **** 4665 **** upload len:37433 didReceivedProgress: <NSMutableURLRequest: 0x15dcf980> **** 32768 **** upload len:37433 didReceivedProgress: <NSMutableURLRequest: 0x15dbedb0> **** 4665 **** error:Error Domain=com.saemobile.LEOWebDAV.error Code=409 "The operation couldn’t be completed. (com.saemobile.LEOWebDAV.error error 409.)"

Con you help me please??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.