leyleo / leowebdav Goto Github PK
View Code? Open in Web Editor NEWios webdav client library
License: Other
ios webdav client library
License: Other
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:
Hi,
I checked download parts, Now i want to upload files to webdav, please help me.
hello , sometimes when i try to get the childs files of a directory , i get the directory as a child of his self . can you please help me to fix that ?
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.
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
Crashlytics error:
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x2000000c
-[LEOWebDAVRequest connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]
respondsToSelector:
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
Hi, i'm using your kit for my app...is there some way to get the used and available space on the server?
Thanks
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.
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??
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
Calling stringByReplacingPercentEscapesUsingEncoding twice can mangle string or return nil if original string contains '%' sign
LEOWebDAVParser
_currentItem.href = [_currentString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
LEOWebDAVItem
return [[href lastPathComponent] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
File with name, for example, "File%Name", results in displayName equal to nil.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.