我想要一个AJAX文件上传器,如Gmail文件上传和PHP中的进度条

时间:2023-01-17 15:03:48

I'd like an AJAX file uploader like the one shown in Gmail when you're uploading a file (with the progress bar) written in PHP.

当您上传用PHP编写的文件(带进度条)时,我想要一个像Gmail中所示的AJAX文件上传器。

Anyone have any ideas?

有人有主意吗?

Thanks.

4 个解决方案

#2


2  

Many other can be found on Google and on this page

许多其他内容可以在Google和此页面上找到

#3


1  

I tried AJAX Upload by Andrew Valums to upload multiple files. This works really great and easy to use.

我试过Andrew Valums的AJAX上传来上传多个文件。这非常好用且易于使用。

#4


0  

You could dynamically update a JQuery Progress Bar plugin, and achieve the same look and feel.

您可以动态更新JQuery Progress Bar插件,并实现相同的外观。

<div id="progressbar"></div>
<script>
  $(document).ready(function() {
    $("#progressbar").progressbar({ value: 1 });
  });
</script>

Then all you need to do is reference that progress bar and set it's value based on your actual progress:

然后,您需要做的就是引用该进度条并根据您的实际进度设置它的值:

$( ".selector" ).progressbar( "option", "value", <YOURVALUE>);

#1


#2


2  

Many other can be found on Google and on this page

许多其他内容可以在Google和此页面上找到

#3


1  

I tried AJAX Upload by Andrew Valums to upload multiple files. This works really great and easy to use.

我试过Andrew Valums的AJAX上传来上传多个文件。这非常好用且易于使用。

#4


0  

You could dynamically update a JQuery Progress Bar plugin, and achieve the same look and feel.

您可以动态更新JQuery Progress Bar插件,并实现相同的外观。

<div id="progressbar"></div>
<script>
  $(document).ready(function() {
    $("#progressbar").progressbar({ value: 1 });
  });
</script>

Then all you need to do is reference that progress bar and set it's value based on your actual progress:

然后,您需要做的就是引用该进度条并根据您的实际进度设置它的值:

$( ".selector" ).progressbar( "option", "value", <YOURVALUE>);