Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Validating if file exist after download

    SmartGWT Power

    On the client side have a link (button) to download a file. I used Window.open(...) to force download the file. But once I give control to a different browser window, I am out of the loop. I want to know if I can put in a timer of something to better to check with an input file type or javascript to validate that my download is successful.

    TIA,

    #2
    No, not really. The only way to detect succes would be to add a servlet that downloads the file (instead of letting your web server / application server do it) and detect completion when you have succesfully delivered the last byte.

    Comment

    Working...
    X