Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TbFileUpload always multiple #1018

Open
izemize opened this issue Mar 14, 2015 · 1 comment
Open

TbFileUpload always multiple #1018

izemize opened this issue Mar 14, 2015 · 1 comment

Comments

@izemize
Copy link
Contributor

izemize commented Mar 14, 2015

Hy!

I use this widget:

$this->widget('booster.widgets.TbFileUpload',array(
    'multiple'=>false,
    'model'=>$model,
    'attribute'=>'picture',
    'url'=>$this->createAbsoluteUrl('/deejays/upload'),
    'options'=>array
    (
        'maxFileSize'=>2000000,
        'acceptFileTypes'=>'js:/(\.|\/)(jpe?g)$/i',
    )
));

I set 'multiple'=>false, but is ignored in form template.

@pavlelee
Copy link

gallery is not work, how to set it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants