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

Maximum size issue when attaching plugin from component #33

Open
rajakhoury opened this issue Jan 24, 2017 · 2 comments
Open

Maximum size issue when attaching plugin from component #33

rajakhoury opened this issue Jan 24, 2017 · 2 comments

Comments

@rajakhoury
Copy link

Hi, I have set the maxSize to 5 MB but if I attach a larger file it still gets uploaded, i am attaching the uploader from a component as per the docs :

 $component = $this->addComponent(
           'Responsiv\Uploader\Components\FileUploader',
            'fileUploader',
            [
                'deferredBinding' => true,
                'maxSize ' => 5, // 5 MB
                'fileTypes' => ".jpg, .jpeg, .bmp, .png, .gif, .pdf, .txt, .xml, .doc, .xls, .xlsx, .docx, .csv",
            ]
        );

        $component->bindModel('attachments', new Ticket );

and in my partial I just add {% component 'fileUploader' %}

@greggunner
Copy link
Contributor

I've added a PR for a fix on this: #39

@vojtasvoboda
Copy link

Same issue here. Tested PR and works great.

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

3 participants