Skip to content

Maximum size issue when attaching plugin from component #33

Description

@rajakhoury

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' %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions