When persisted state contains incomplete uploads from a previous tab
session, the uploader now shows a confirm modal: Resume all or
Discard. Resume re-adds the tasks to the queue and
automatically starts uploading (when persistBlobs kept the
File data). Discard clears the persisted store. Set
restorePrompt: false for the legacy auto-rehydrate
behaviour, or pass a function for a custom UI.
Try it: queue a large file, click Start, then reload the page (F5) before it finishes.
On reload you'll see a modal: Resume all (auto-rehydrates + restarts) or Discard (clears IndexedDB).
Configuration
AjaxUploader.create('#uploader', {
persistState: true,
persistAdapter: 'indexeddb',
persistBlobs: true,
restorePrompt: true // default - built-in modal
// restorePrompt: false // legacy auto-rehydrate
// restorePrompt: function (tasks) { // custom UI:
// return new Promise(function (res) { showMyModal(tasks, res); });
// }
});