filepond-plugin-file-validate-size
filepond-plugin-file-validate-size copied to clipboard
maxFileSize Error
Hi to all, I have always this error when I use plugin

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
You have to register the plugin to use it.
I use this code for enable plugin
FilePond.registerPlugin(
FilePondPluginFileValidateType,
FilePondPluginFileValidateSize
);
Please create a test case on codesandbox.io
I don't to use never this service. Now I check How to use it