                 DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
                     uploadMonitorViewController.dismiss(animated: true) {
                         self.uploadMonitorViewController = nil
+                        callPickerStoredFileOnDelegate()
                     }
                 }
-            }
-
-            if let picker = self.navigationController as? PickerNavigationController {
-                picker.pickerDelegate?.pickerStoredFile(picker: picker, response: response)
             }
         }
 

            // Nil the reference to the request object, so it can be properly deallocated.
            cancellableRequest = nil

            if let error = response.error {
                let alert = UIAlertController(title: "Upload Failed",
                                              message: error.localizedDescription,

                    // Dismiss monitor view controller, and remove strong reference to it
                    uploadMonitorViewController.dismiss(animated: true) {
                        self.uploadMonitorViewController = nil
                        callPickerStoredFileOnDelegate()
                    }
                }))

