Resume Function (General questions)

by michael090 @, (7378 days ago)

Good day,
I'd like to ask how can i use the resume function of this component. State a scenario like this.


I've upload a file. But the connection was disconnected/went wrong. Then I tried to upload again. There's an error said:

Cannot use Append method when Resume property is set to True.

Can you give me a sample that continue/resume the upload that has been disconnected? And what would happened if I try to upload a new one?

Regards,
Dan

locked

Re: Resume Function

by Jasmine, (7378 days ago) @ michael090

Michael,

don't use Append, use PutFile again. Using Append doesn't make sense, right? How will we detect where upload was broken when we're adding to remote file, and most probably it's larger than local one.

locked

Re: Resume Function

by michael090 @, (7378 days ago) @ Jasmine

I'm using wod.putfiles Because I'm transfering a folder to the FTP site.


Is there's a way to resume the broken upload or download? Before I transfer a file/folder?

locked

Re: Resume Function

by Jasmine, (7378 days ago) @ michael090

Michael,

Resume property should help you, I think it will work just by setting it to True. Did you try it? What happens?

locked

Re: Resume Function

by michael090 @, (7378 days ago) @ Jasmine

I'll try to use 'll and make some testing... I'll post the result later.


Thanks for the help..
Dan

locked

Re: Resume Function

by michael090 @, (7378 days ago) @ michael090

Hi, Thanks for the help. It works now. But can i ask how could i know if the upload/download is finished w/out any errors?

locked

Re: Resume Function

by Jasmine, (7377 days ago) @ michael090

Error would be thrown if there is one, and you would see it in Done event.

locked