Selecting a file for upload

Need help. My problem is to select a file in a folder and upload it in a website. I want to select the recently saved/modified file to be selected and uploaded.

@Henson_Ibon ,

The below code will give you the recently updated file. Use it with a Assign Activity and check

new DirectoryInfo("yourDirectory").GetFiles().OrderByDescending(Function(f) f.LastWriteTime).First().ToString

Hiii @Henson_Ibon,

1)First you need to get latest modifled file from the specified folder.

2)then you need to enter the path in file name text box

you already have folder path to get latest file use below code from this post.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.