Yii Framework Forum: Euploadify No Buttons - Yii Framework Forum

Jump to content

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

Euploadify No Buttons Rate Topic: -----

#1 User is offline   lostmahbles 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 20-March 10

Posted 28 April 2010 - 12:23 AM

Hello,

I've been trying like crazy tonight to get the EUploadify extension to work in my app. As in the documentation, I extracted the .zip file into my extensions directory. I at first thought it might be because I'm not explicitly setting the path to the uploader etc, but even setting those didn't work.

Should this have worked (albeit in a basic sense) right out of the box like it seems to imply?

In the view: ($model is a FormModel)
$this->widget('application.extensions.uploadify.EuploadifyWidget', 
    array(
        'model'=>$model,
        'attribute'=>'image',
        'options'=> array(
            //'uploader' => '/js/uploadify.swf',
            'script' => $this->createUrl('profile/ajaxUpload'), 
            //'cancelImg' => '/js/cancel.png',
            //'auto' => true,
            //'multi' => false,
            //'folder' => '/tmp',
            'scriptData' => array('extraVar' => 1234, 'PHPSESSID' => session_id()),
            //'fileDesc' => 'Declaratiebestanden',
            //'fileExt' => '*.*',
            'buttonText' => 'Upload',
            'buttonImg' => '/images/btn.gif',
            'width' => 100,
            ),
        'callbacks' => array()
    )); 


What happens is that it displays the input field but no buttons, and hence, no way to kick of the upload.

Any suggestions? There doesn't seem to be any indication anywhere else that this is anything less than easy so I can't seem to understand why this is so frustrating.

Thanks!

Bryan
0

#2 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 28 April 2010 - 12:48 AM

Does it insert any JS inside the document?
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#3 User is offline   lostmahbles 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 20-March 10

Posted 28 April 2010 - 08:10 AM

View PostVince., on 28 April 2010 - 12:48 AM, said:

Does it insert any JS inside the document?


Yes, it inserts the jquery script and the uploadify script in the head.

Edit---
Turns out some of my assets were out of date. Clearing out my asset folder fixed it.
0

#4 User is offline   koz 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 23-June 10

Posted 25 June 2010 - 12:08 PM

lostmahbles did you implement this? how you did it... i cant do it and also noob on Yii... thanks
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