Apparently in the newest version of Studio, it doesn’t have/allow the most recent version…not sure what the deal is with that. Anyway, I see what you’re referring to now.
I think I see the issue. You’re passing just the C:\Uploads folder to the Local Path - so, this path gets handed of to the ftp client. The client assumes since you’re giving it a directory name, you want that sent as well.
To send just the files, you’ll need to iterate through the files in the directory, send them one at a time. This will eliminate the folder being sent and created
@sagacity - iterating through the files is fine, but how will I upload a file at a time? How and what will be the value I need to pass to the upload files activity?
Assuming using “With ftp session”; within that activity, use the “For Each” activity.
for Values, use Directory.GetFiles(“c:\Upload”); the foreach object defauts to name “item”
Then, in For Each Body, place “Upload Files” ftp activity, and set “Local Path” to item.ToString
Set the rest as normal.
When executed, the bot will connect to ftp server, then run the for each loop, which will populate the “item” collection with the list of files from "Directory.GetFiles(“C:\Upload”) - the loop the starts, and indexes to the first item, so, item.tostring will equal the full path value of the the first file in the collection, this is what “Upload Files” uses as its input, and uploads that files. The loop then goes to the next file, passes to upload, etc., until the collection is empty.