Flash文件上传进度条 [英] Flash in Gmail File Upload Progress Bar

查看:151
本文介绍了Flash文件上传进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



例如:

b
$ b

我的问题是确实,GMail使用Flash来生成上传进度条?如果不是,那么GMail如何在IE9中实现进度条,而不支持FileAPI?我做了几个测试,在GMail文件上传过程中,我无法确认是否存在Flash。




  • 我安装了FlashBlocker,可以有效地阻止Flash内容。但是,GMail文件上传进度栏并未被阻止。

  • 我右键单击进度栏,查看它是否是Flash小程序,但不是。

  • 我检查了源代码,但没有发现任何对.swf代码的引用。 它的文件上传,这是显示在所有的浏览器,包括IE9?

    任何想法,请,如果另一个开发人员可以实现相同的结果,或者如果文件上传进度栏是Google特定的?

    我知道有很多插件可用于Google上传,但我希望有干净的JavaScript,HTML5,PHP,CSS3以及与IE9的兼容性。因此,我愿意自己编写所有的代码,如果我理解这个主题。

    我使用以下工具:


    • Javascript

    • HTML5

    • PHP
    • / li>
    • CSS3



    谢谢。

    < hr>

    更新:



    看起来GMail使用Flash来计算上传文件时的进度百分比。它比使用CSS生成进度条,因此没有使用Flash小程序来显示进度栏。



    我通过在IE9中禁用Flash来发现这一点。与Chrome相反,Flash可以很容易地在IE 9中禁用。



    请问,如果您有任何要添加到这个主题,我会很乐意讨论。例如,了解Flash小程序如何生成文件上传进度百分比,以及如何将这些信息与JavaScript或CSS进行通信将是有趣的。

    方案

我进一步探讨了,我必须确认,是的,今天仍然是GMail必须使用几个支持文件/附件上传的Flash对象。

很难在Chrome中禁用Flash。但是,它可以在IE中被禁用。在IE浏览器中禁用Flash之后,GMail已经切换到了另一个没有进度条的交互式上传系统。



这是GMail仍然使用Flash来支持上传的明确证据例程。

Several resources I have found claim, that GMail File Upload incorporates Flash to display progress bar or to allow multiple file uploads.

For example:

My question is, it true, that GMail uses Flash to generate upload Progress Bar? If not, how does GMail achieve Progress Bars in IE9, which does not support FileAPI? I did several tests, and I was not able to confirm presence of Flash during GMail File Upload process:

  • I installed FlashBlocker which was blocking Flash content effectively. However, GMail File Upload progress Bar was not blocked.
  • I right clicked on the Progress Bar to see if it is Flash applet, but no it is not.
  • I checked source code, but I did not find any reference to .swf code.

So how does the GMail imlement its File Upload, which is displayed in all the browsers including IE9?

Any idea, please, if another developers can achieve the same results, or if the File Upload Progress Bar is Google specific?

I know there are many plugins available for Google Upload, but I wish to have clean JavaScript, HTML5, PHP, CSS3 and compatibility with IE9. I am therefore willing to code all the code on my own, if I understand the subject.

I use the following tools:

  • Javascript
  • HTML5
  • PHP
  • MySQL
  • CSS3

Thank you.


Update:

It really looks that GMail uses Flash to calculate Progress percentage when uploading a file. It than uses CSS to generate progress bar, therefore no Flash applet is used to display the Progress Bar.

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

Please, if you have anything to add to this topic, I will gladly discuss. For example, it would be interesting to know, how Flash applet can generate file upload progress percentage, and how it than can communicate that information with JavaScript or CSS.

解决方案

I have further explored, and I have to confirm, YES, still today, GMail must use several Flash objects that support file/attachment upload.

It is difficult to disable Flash in Chrome. However, it can be disabled in IE. After disabling flash in IE, GMail has switched to another, less interactive upload system without progress bars.

This is a clear proof of that GMail still uses Flash to support its upload routines.

这篇关于Flash文件上传进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆