Yii Framework Forum: Problem with SWFUploader Extension - Yii Framework Forum

Jump to content

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

Problem with SWFUploader Extension Rate Topic: -----

#1 User is offline   karim gioca 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 83
  • Joined: 21-September 10

Posted 09 October 2010 - 11:01 AM

Hi everybody,
I want to install SWFUploader Extension. i download it from here.

i install it as the documentation said exactly
I get this (see the attached file please).

i tryed to modify the code but nothing.

If you have any way to install this extension normally i'll appreciate :)
this is my source code in the view

<?
$this->widget('application.components.swfupload.CSwfUpload', array(
    'jsHandlerUrl'=>'../components/swfupload/handlers.js', //Relative path
    'postParams'=>array(),
    'config'=>array(
        'use_query_string'=>true,
        'upload_url'=>$this->createUrl('site/upload'), //Use $this->createUrl method or define yourself
        'file_size_limit'=>'2 MB',
//        'file_types'=>'*.jpg;*.png;*.gif',
        'file_types_description'=>'Image Files',
        'file_upload_limit'=>0,
        'file_queue_error_handler'=>'js:fileQueueError',
        'file_dialog_complete_handler'=>'js:fileDialogComplete',
        'upload_progress_handler'=>'js:uploadProgress',
        'upload_error_handler'=>'js:uploadError',
        'upload_success_handler'=>'js:uploadSuccess',
        'upload_complete_handler'=>'js:uploadComplete',
        'custom_settings'=>array('upload_target'=>'divFileProgressContainer'),
        'button_placeholder_id'=>'swfupload',
        'button_width'=>170,
        'button_height'=>20,
        'button_text'=>"<span class='button'>".Yii::t('messageFile', 'ButtonLabel')." (Max 2 MB)</span>",
        'button_text_style'=>".button { font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 11pt; text-align: center; }",
        'button_text_top_padding'=>0,
        'button_text_left_padding'=>0,
        'button_window_mode'=>'js:SWFUpload.WINDOW_MODE.TRANSPARENT',
        'button_cursor'=>'js:SWFUpload.CURSOR.HAND',
        ),
    )
);
?>

<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>


	<br />
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'news-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('enctype' => 'multipart/form-data'),)); ?>
 
<?php // echo CHtml::beginForm(); ?>
<div class="form">
    <div class="row">
    <div id="divFileProgressContainer">rgterg</div>
    <div class="swfupload"><span id="swfupload">dfgdfg</span></div>
    </div>
</div>
<?php //echo CHtml::endForm(); ?>
<?php $this->endWidget(); ?>


Attached File(s)


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