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

maxFileSize Error #16

Open
hunterbit opened this issue May 20, 2021 · 4 comments
Open

maxFileSize Error #16

hunterbit opened this issue May 20, 2021 · 4 comments

Comments

@hunterbit
Copy link

Hi to all,
I have always this error when I use plugin

image

This is my code with maximum size to 40MB but when I upload one file it's return always error.
Where I wrong?

pond = FilePond.create( inputElement , {
        acceptedFileTypes: [
            'image/*',
            'application/pdf',
            'application/msword',
            'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
        ],
        labelFileTypeNotAllowed: 'Il tipo di file non può essere caricato',
        fileValidateTypeLabelExpectedTypes: 'Sono accettati file di tipo IMAGE, PDF, DOC',
        allowFileSizeValidation: true,
        maxFileSize: '40MB'
    });

Thanks

@rikschennink
Copy link
Collaborator

You have to register the plugin to use it.

@hunterbit
Copy link
Author

I use this code for enable plugin

FilePond.registerPlugin(
        FilePondPluginFileValidateType,
        FilePondPluginFileValidateSize
    );

@rikschennink
Copy link
Collaborator

Please create a test case on codesandbox.io

@hunterbit
Copy link
Author

I don't to use never this service.
Now I check How to use 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