Flash in Gmail to upload files

Several resources that I have found claim that downloading a GMail file enables Flash to display a progress bar or allow multiple file downloads.

For instance:

My question is: is it true that GMail uses Flash to create a Progress Progress line? If not, how does GMail achieve Progress Bars in IE9 that does not support FileAPI? I conducted several tests, and I was not able to confirm the presence of Flash while loading the GMail file:

  • I installed FlashBlocker, which effectively blocked Flash content. However, the GMail file download progress indicator was not blocked.
  • I right-clicked on the progress bar to make sure that this is a Flash applet, but it is not.
  • I checked the source code, but I did not find a link to the .swf code.

So, how does GMail display its file download, which is displayed in all browsers, including IE9?

Any idea, please, if other developers can achieve the same results or if the file download progress bar is specific to Google?

I know that there are many plugins to download Google, but I want to have pure JavaScript, HTML5, PHP, CSS3 and compatibility with IE9. Therefore, I am ready to independently encode all the code, if I understand the subject.

I use the following tools:

  • Javascript
  • HTML5
  • Php
  • MySQL
  • CSS3

Thanks.


Update:

In fact, it looks like GMail uses Flash to calculate the percentage of progress when downloading a file. This is more than using CSS to create a progress bar, so the Flash applet is not used to display the progress bar.

I discovered this by disabling Flash in IE9. Unlike Chrome, Flash can be easily disabled in IE 9.

Please, if you have anything to add to this topic, I will discuss it with pleasure. For example, it would be interesting to know how a Flash applet can generate a percentage of completed file downloads and how it can convey this information using JavaScript or CSS.

+4
source share
2 answers

I’ve studied yet, and I have to confirm, YES, so far, GMail should use several Flash objects that support file / attachment upload.

It's hard to disable Flash in Chrome. However, it can be disabled in IE. After disabling the flash in IE, GMail switched to another, less interactive boot system without progress indicators.

This is clear evidence that GMail is still using Flash to support its boot routines.

+3
source

Google switched to HTML5 multi-file upload about 2 years ago. I think they use backup flash downloaders. http://www.webmonkey.com/2010/04/google-turns-to-html5-for-gmails-new-drag-and-drop-attachments/

This library (jQuery File-Upload - Demo here: http://blueimp.github.com/jQuery-File-Upload/ ) claims that it can use File Progress in Internet Explorer (at least in some way; -)):

All versions of Internet Explorer will also update the global progress bar after each iframe-based download. However, since IE does not report file size, a global progress bar will measure each downloaded file the same regardless of the size of the downloaded file. https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support

+2
source

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


All Articles