There seems to be an issue with the File Dropzone component, specifically how it handles multiple sequential file uploads.
I believe that the file information is being kept in the browser memory even when files are removed from the component either by selecting different files or by clearing the component.
This sooner or later causes an Out of Memory error in the browser.
I think this might be related to this topic from 2024 (on self-hosted Retool).
Steps to reproduce:
- Add a File Dropzone component to your app
- Select a file or multiple files (preferably bigger)
- Select some other files
- Continue until the browser runs out of memory and the page crashes
I think that the component should be clearing itβs internal memory when the file is changed instead of storing them permanently. Our use case requires uploading multiple files one by one and we seem to be hitting the memory limit sooner or later.