Using expect to automate sftp

I am trying to use a for loop in my expect cmdFile that I am calling.

I want to be able to call either one file name or a series of file names in the working directory (that I won't know the names before hand) and then pass the names to the sftp program.

Something like

for i in (ls *txt)
do