a file upload behavior
...requirements of using this extension (testing 1.1.4)...
...copy it to you components directory or other directory, import it...
...can use code blocks like the following...
public function behaviors() { return array( 'UploaderBehavior' => array( 'class' => 'ext.behaviors.UploaderBehavior', 'uploadSavedPathAttributes' => array( 'picture_saved_path' => array( 'fileType' => 'image', 'fileName' => 'attribute name, if fileName attribute is not in required rule and you don not input it, fileName attribute will set it to you upload filename', 'fileSize' => 'file size attribute name', 'fileExt' => 'file extension attribute name', 'generateThumbnail' => true, ), ), ), ); }
...external resources for this extension...
Be the first person to leave a comment
Please login to leave your comment.