jquery.fileDownload icon indicating copy to clipboard operation
jquery.fileDownload copied to clipboard

Remove cookie before starting the request , fixes issue #72

Open mdismer opened this issue 9 years ago • 2 comments

…e before the request is complete

mdismer avatar May 20 '16 09:05 mdismer

hey so you are saying this doesn't work:

https://github.com/mdismer/jquery.fileDownload/blob/b7e297fed978a8fdc2428337b29e8c8490e813be/src/Scripts/jquery.fileDownload.js#L354

johnculviner avatar May 23 '16 03:05 johnculviner

https://github.com/mdismer/jquery.fileDownload/blob/b7e297fed978a8fdc2428337b29e8c8490e813be/src/Scripts/jquery.fileDownload.js#L354 Does work, but only after success. Sometimes you can end up with a stale cookie left over from a previous request (file downloaded from a different link without javascript on it, for example). In this case, onSuccess will fire immediately.

jessnorwood avatar Jul 02 '18 14:07 jessnorwood