filepond: Crashing on iPhone when using camera

FilePond.registerPlugin(
    FilePondPluginImageExifOrientation,
    FilePondPluginImagePreview,
    FilePondPluginImageResize
);
FilePond.setOptions({
    instantUpload: false,
    allowImageResize: true,
    server: {
        url: 'https://myapp.com',
        process: 'upload/images',
    }
});

var testImages = FilePond.create(
	document.querySelector('#xyz')
);

Summary

When using iPhone camera as a source, after taking three pictures, the webpage crashes and reloads. Using DropzoneJS.js I can add at least 10 I haven’t tested how many I can add. The file size for the images is 4-6.5mb, taking a photo directly from the webpage as this is how I want users to be able to add photos. …

How to reproduce

Added source just normally to the page. Open page in Safari, take some pictures and add them until it crashes ~3 pics …

Expected behaviour

Keeps adding pictures …

Environment Version
OS iOS
Device iPhone XS Max
Browser Safari Latest

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17

Most upvoted comments

That’s great Rik, I’ve done one test and noticed a big improvement - managed to add ~40 images before a noticeable lag, but no crashes. 👍

Thanks, I’ll run some additional tests.

Great thank you, I think the issue is with the FilePondPluginImagePreview plugin, I’ve done a test without the plugin registered and I could add 50+ images from camera… as soon as I added it again it crashed after 2-3 images