You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Enhancement: Be able to upload multiple streams #1228
Currently the library supports uploading multiple files using a collection of either the file paths or the FileInfo objects.
It would be really good to be able to upload multiple streams. This is useful when the files come from an external source (e.g. Azure blob storage etc.).
Could you not wrap this yourself as a multiple incarnation of a FluentFTP (sequential) single stream API call? I suppose this is the way it would be coded into FluentFTP if it were done...
Hmm, it might be possible, but I am not sure how single stream API call will handle file names.
As a work around one can zip all the files in one and send it. Or just send each stream in a loop but this is not efficient.
One of the benefits sending multiple files in one request is that you will not end up with partial success, I guess. Or it all succeeds or all fail.
I see, if internally each file is transferred individually than I can just do it in a loop. I had the impression that it is one transfer and in case of failure the FTP server is responsible for the cleanup.
Activity
FanDjango commentedon Mar 8, 2023
Could you not wrap this yourself as a multiple incarnation of a FluentFTP (sequential) single stream API call? I suppose this is the way it would be coded into FluentFTP if it were done...
Useful, I agree, but if you need it now...
arman-g commentedon Mar 8, 2023
Hmm, it might be possible, but I am not sure how single stream API call will handle file names.
As a work around one can zip all the files in one and send it. Or just send each stream in a loop but this is not efficient.
One of the benefits sending multiple files in one request is that you will not end up with partial success, I guess. Or it all succeeds or all fail.
FanDjango commentedon Mar 8, 2023
Yes, I suppose you would be duplicating some stuff already in FluentFTP.
Wait a moment.
internally, these are transferred not simultaneously. Rather: One after the other, right? So what's the difference looping them yourself?
arman-g commentedon Mar 9, 2023
I see, if internally each file is transferred individually than I can just do it in a loop. I had the impression that it is one transfer and in case of failure the FTP server is responsible for the cleanup.
arman-g commentedon Mar 9, 2023
I still think it is worth to provide this feature as an overload of the existing UploadFiles.
FanDjango commentedon Mar 21, 2023
I have moved this to the wiki: https://github.com/robinrodricks/FluentFTP/wiki/Future-Plans