Thank you. In my case I cannot store the data in the backend. storing in hidden div is my best option as i see that even dcc store also has space limitations.
In addition to a hidden div (userās browser memory) you can store data into the serverās memory (not hard disk) using the Flask-Caching with Redis (link in above comment). This might help in situations where there is lot of data (too much for browser memory). But in your case, you would need to get the dcc.Upload contents to be emptied somehow. Unfortunately I donāt know how to do that programmatically (of course itās possible to make it almost empty by uploading empty dummy file manually).