I need to handle a 500MB file upload where the user may be redirected to a login page and later return to resume the upload. To store the file temporarily, options like IndexedDB or CacheStorage seem viable, but they may have limitations with large files and short-lived data. The FileSystemAccess API was considered but isn’t widely supported across browsers. What is the best solution for this use case?”
Which is better in terms of speed and security for temporarily storing a 500MB file: IndexedDB or CacheStorage?
Shairil Kansal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
6
IndexedDB, according to this documentation is best suited for large data structures.
The maximum storage allowed is based on the browser, see storage limits documentation