Restore Prompt (Golden Retriever)

User-friendly resume modal on reload

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.

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); });
 // }
});