Error in click

See their there are two send sales quote it will be click by click on automatically it’s works fine
If I am click one send sales quote there is a pop up window will open up there I will pick a file
In that part type into activity is there if I create one variable and passed in type into activity but they pic only the last data

And click again send sales quote and picking the last data again here it is my error.

So now clicking send sales quote it will pick first data and clicking again send sales quote it will pick second data by automatically

So please explain me this

Thank you