How to limit the number of files to upload on a website?

I would like to know if it is possible to limit the number of files selected for upload on a website.
In one step of the process, the robot selects all files in a folder and I would like to limit this selection to a specific number.

I use the send hotkey activity to select all files when a window for selecting those files opens. And I also use the type into activity to search the folder.

Hi @vinicius.botelho,

Instead of doing this, you can list the files in a specific folder.

fileList => System.Strin[]

fileList = Directory.GetFiles("your folder path")

Now you can specify what kind of filter you want to throw this array list.

For example, if you load in the Loop, you can hold a count and say stop and exit the loop when it reaches a certain number.