[Xupload] Different Buttons To Upload To Different Locations?

Hello everyone, I’m using XUpload to manage files in my application and it goes fine as far as you just need to transfer files to a fixed folder. What I’m trying to achieve now is setting the name of the uploaded file according to the button clicked to upload. I’ll make an example.

Say I can upload 4 kind of attachment to a given user. Each one has a widget that renders

[Upload Attachment A]

[Upload Attachment B]

[Upload Attachment C]

[Upload Attachment D]

I’d like the uploaded file to call himself MyFile_A.txt if I used first button, MyFile_B if I used the second one and so on. I tried defining different actions based on XUploadAction class in my controller but they don’t seem to have any effect.

Anyone can help?