Yii Framework Forum: [Xupload] Different Buttons To Upload To Different Locations? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Xupload] Different Buttons To Upload To Different Locations? How to?

#1 User is offline   Master Q 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 22-July 13

Posted 23 December 2013 - 10:40 AM

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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users