File upload doesn't work if link to Gmail form is available in IE 9

My application sends letters to users with a link to the application page, where the user can download a file for business requirements. If the email is sent to the gmail identifier and when the user opens the email in IE9 and clicks on the link, he goes to the application page, and when he tries to download the file, he fails. There are no error messages on the IE9 Developer Console.

  • Downloading works fine in all browsers except IE9.
  • If the user opens the link by right-clicking → Open in a new tab, the download works fine
  • If the user directly clicks on the link, which by default opens in a new tab in IE9, the download will fail.

I checked the urls in both cases and there are no differences. I tried playing with the target attribute for the link (new, empty, etc.), and nothing helps.

Copy paste links in new tabs. But without clicking on the link

+4
source share
1 answer

This is an IE9 problem - apparently you can get around this by installing IE9 in IE8 mode in Gmail (ok, yes!)

In any case, there is a good entry (and a link to a demo project showing the problem):

https://github.com/blueimp/jQuery-File-Upload/issues/457

IE9 (and possibly other versions of IE) does not allow programmatically programming an HTML form (either through form.submit () or through button.click ()) if the contained document was opened via a Gmail link.

+1
source

Source: https://habr.com/ru/post/1441605/


All Articles