Giter VIP home page Giter VIP logo

lxftprequest's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lxftprequest's Issues

the uploaded png picture is blank

I have uploaded a few png pictures, but all of them are blank. But jpg picture is OK. I have tried another demo written by other person, png pic is still blank. This is a bug.

NSURL with imageviewpicker not working

Hello,

I try to upload a video from my iphone with photolibrary :

NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];

But your lib says that the localFileURL is illegal, but the path given is good.

Do you know what happen ?

How to know if I am using breakpoint continuity?

Hi LX, the lib is awesome.
What I wonder is in your description, this lib accomplished breakpoint continuity, and I run the test, but I can't pause the uploading process, how can I do that?

Upload PDF file not successful

I tried uploading a pdf file to my ftp server. Application notify that uploading is successful but I can not open the uploaded file and uploaded file size is small than local file.

EXC_BAD_ACCESS at the following line

I have successful uploading the file; however, it crashed at the line of the code:

request.successAction([NSString class], request.serverURL.absoluteString);

EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

Here is what I have the code:

LxFTPRequest *request = [LxFTPRequest uploadRequest];
NSLog(@"create request object");
request.serverURL = [[NSURL URLWithString:FTP_SCHEME_HOST]URLByAppendingPathComponent:FILE_PATH];
request.localFileURL = [NSURL fileURLWithPath:LOCAL_FILE_SAVE_PATH];
request.username = USERNAME;
request.password = PASSWORD;

    request.progressAction = ^(NSInteger totalSize, NSInteger finishedSize, CGFloat finishedPercent) {
        NSLog(@"totalSize = %ld, finishedSize = %ld, finishedPercent = %f", (long)totalSize, (long)finishedSize, finishedPercent);
    };
    request.successAction = ^(Class resultClass, id result) {
        [statusView removeFromSuperview];
        [statusView release];
        
        NSLog(@"resultClass = %@, result = %@", resultClass, result);
    };
    request.failAction = ^(CFStreamErrorDomain domain, NSInteger error, NSString *errorMessage) {
        [statusView removeFromSuperview];
        [statusView release];
        
        NSLog(@"domain = %ld, error = %ld", domain, (long)error);
    };
    NSLog(@"start requesting the FTP!");
    [request start];

Memory leak due to retain cycle

Every LxFTPRequest object is leaked because it stores a strong reference to itself in _streamClientContext.info.

I fixed this by releasing the object in the -stop method like this:

- (void)stop
{
    CFBridgingRelease(_streamClientContext.info);
    _streamClientContext.info = NULL;
}

and calling [super stop] in all the derived classes.

下载中文名文件报错

无法下载中文名称的文件 会报错 code -1 但是上传是成功的 很奇怪 试过给url编码 但还是失败

Change mode

How can I set between active and passive mode?

LxFTPRequest.m file unsynchronized via pod install

I have s.dependency 'LxFTPRequest', '~> 1.0.0' and do pod install, then I found the generated LxFTPRequest.m file is different from the one in this git repo. The "resourceListRequest" function doesn't work when using the generated LxFTPRequest.m but works in the one in this git repo.

Another problem is: for the ftp url string validation function, it doesn't allow "-" in the string, but actually my ftp server address does have "-" in the string, like "ftp://abc-def.xxx.com". Could you also fix that? Thanks!

RT

去年用了你的类的,基本上没出问题的。谢谢!!!
后来发现我写的太随便了,FTP上传都没有去检查服务器的容量和目录是否存在的。
建议有时间更新上去,直接用的。
基本上resourceListRequest 这个都能满足上面说的2个问题的。

上传图片失败

domain = 6, error = 550 errorMessage = Requested action not taken. File unavailable (e.g., file not found, no access).
iOS11.1 Xcode9

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.