Hi Brian,
Along the line of what Bruce said. You need to "save" the value of st:staffid into a safe unused session variable, prior to the upload commencing. Then use that saved value to prime your ECT record.
Because, if your uploads can take some time your user might leave this screen and do something else that will change the value in your st:staffid session variable. If they do that your uploads
(or some of them) will arrive for the wrong staff member, which can prove very unsatisfactory.
That said, I don't think its your actual problem here. Unless you have other code on this page which changes the st:staffid, in which case its probably your problem.
Regards
Bill