I want an AJAX file uploader like Gmail file uploa

2020-02-26 03:26发布

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.

Anyone have any ideas?

Thanks.

标签: php jquery ajax
4条回答
老娘就宠你
2楼-- · 2020-02-26 03:43

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

<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>);
查看更多
霸刀☆藐视天下
4楼-- · 2020-02-26 03:56

Many other can be found on Google and on this page

查看更多
▲ chillily
5楼-- · 2020-02-26 03:57

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

查看更多
登录 后发表回答