1

The application will send a link by SMS, the link requires OTP and after verification of OTP, a PDF document is downloaded.

How can we ensure the file is successfully downloaded and opened?

Can we have our page download the file in the background with a progress bar UI and hand over to browser/system download API only after the file is successfully downloaded in the background?

We want assurance that file is successfully received and opened. Thank you.

kchomski
  • 2,872
  • 20
  • 31
sabbas
  • 11
  • 2

1 Answers1

0

Already following thread is discussion this scenario, having useful inputs.

Determining successful download using php readfile

How to tell if a file was really downloaded and saved, despite browser prefetch/cache?

Amitesh Bharti
  • 14,264
  • 6
  • 62
  • 62
  • Thank you. I've seen those threads. But they were of not much help. I'm specifically looking for a solution on mobile - either safari on iOS or chrome on Android. Most solutions are based on file size comparison. can the new progressive web apps help? I know Safari is not yet supported. – sabbas Jul 04 '18 at 06:49