Forum OpenACS Development: Re: FS pkg: Upload multiple files

Collapse
Posted by Iuri Sampaio on
Thanks a lot Pisano!
You helped me to realize that there's nothing new!

"var.var" is a simple thing and it should the treated as a list. The usage of foreach statement is enough to iterate and catch all multiple values within the variable.

The key was that I should have used the entire name explicitly, as the variable's name (i.e. upload_file.tmpfile).

I was killing myself because I was trying to reach the values,
using only the first part of its name, as in: $upload_file and $upload_file(tmp file). Then, I got lost writing more trash code related to TCL array and etc

Thanks again and Best wishes,
Iuri