Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.filepond.registerPlugin(
- FilePondPluginFileValidateType,
- FilePondPluginFileValidateSize,
- FilePondPluginImageResize,
- FilePondPluginImageExifOrientation,
- FilePondPluginImagePreview,
- FilePondPluginImageTransform,
- FilePondPluginImageCrop,
- FilePondPluginImageValidateSize,
- );
- pond.addEventListener('FilePond:addfile', e => {
- console.log('File added', e.detail);
- if (e.detail) {
- if (e.detail.file && e.detail.file.file.name) {
- SetFileOnCanvas(e.detail.file.file, e.detail.file.file.name);
- const inputElement = document.querySelector('input[type="file"]');
- FilePond.destroy(inputElement);
- }
- }
- });
- pond.addEventListener('FilePond:processfile', e => {
- console.log('Process File COMPLETE', e.detail);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement