SFTPСlient - abort download/upload a large file
SFTPСlient - abort download/upload a large file
How to make a correct abort download-upload a large file in SFTPСlient?
Do this in the onData event? can you give the code?
Do this in the onData event? can you give the code?
Re: SFTPСlient - abort download/upload a large file
SecureBridge does not allow you to cancel the operation of downloading/loading a file.
If you want us to add this functionality, please write about it at our User Voice forum: https://devart.uservoice.com/forums/174370-securebridge. If your suggestion gets enough votes, we will consider the possibility of its implementation.
If you want us to add this functionality, please write about it at our User Voice forum: https://devart.uservoice.com/forums/174370-securebridge. If your suggestion gets enough votes, we will consider the possibility of its implementation.
Re: SFTPСlient - abort download/upload a large file
This is a failure. This is the basic function in file operations....
Re: SFTPСlient - abort download/upload a large file
I found this solution
viewtopic.php?t=19149
it seems to work.
Is this the right solution to my question?
viewtopic.php?t=19149
it seems to work.
Code: Select all
procedure TSFTPClientFrame.ScSFTPClientSuccess(Sender: TObject;
Operation: TScSFTPOperation; const FileName: string;
const Handle: TArray<System.Byte>; const Message: string);
begin
if IfNeedAbort then
raise Exception.Create('Custom break file operation');
end;
Re: SFTPСlient - abort download/upload a large file
You can use this code to solve the task.
Re: SFTPСlient - abort download/upload a large file
Yes, please add a function/property to abort upload/download. It is very necessary and not a big work, so I don't think it need a separate vote for this functionality. Thanks.
Re: SFTPСlient - abort download/upload a large file
If we add a parameter to the event handler, this will change the standard behavior of this component, which has been used by our users for many years and this will affect all of them. Therefore, we asked you to write about it at https://devart.uservoice.com/forums/174370-securebridge. If your suggestion gets enough votes, we will consider the possibility of its implementation.
Re: SFTPСlient - abort download/upload a large file
Could you add a new event to realize this function? So it will not change the old versions, but it is really very useful.
Re: SFTPСlient - abort download/upload a large file
We'll try to add it in the next version of SecureBridge.
Re: SFTPСlient - abort download/upload a large file
We have added this functionality. This dobavleniet enter the new build SecureBridge, which we plan to release this week.
Now, to solve your issue, you can use the TScSFTPClient.BeforeReadData and TScSFTPClient.BeforeWriteDataEx event handlers.
Now, to solve your issue, you can use the TScSFTPClient.BeforeReadData and TScSFTPClient.BeforeWriteDataEx event handlers.