douyu53265 2012-05-07 05:34
浏览 71
已采纳

简单的跨浏览器,带进度条的jQuery / PHP文件上传[关闭]

I know there are several topics out there about this, but none of them offered a definite solution for a file uploader script that:

  1. Works on IE7+
  2. Has a progress bar (On every browser)
  3. No Flash (Or fallback)

Any solutions?

  • 写回答

5条回答 默认 最新

  • duanlian1960 2012-05-07 05:48
    关注

    You may use Axuploader by AlbanX. It has got;

    • Multi file upload on all browsers
    • Multi file select on html5 browsers (not IE)
    • Upload progress information on html5 browsers
    • File size information on html5 browsers
    • No flash, no Silverlight, on other plugins, only JavaScript
    • Support IE 6+, Firefox 2+, Safari 2+, Chrome 1+
    • Upload files by chunk, for more performance
    • Not dependent by server max post size and max upload file size limits

    You may also try Fine-Uploader by Widen. It has got;

    • Multiple file select, progress-bar in FF, Chrome, and Safari
    • Drag-and-drop file select in FF, Chrome, and Safari (OS X)
    • Uploads are cancelable
    • No external dependencies at all if using FineUploader or FineUploaderBasic. If using the optional jQuery wrapper, jQuery is of course required.
    • FineUploaderBasic only requires the associated Fine Uploader javascript file. All Fine Uploader css and image files can be omitted.
    • Doesn't use Flash
    • Fully working with HTTPS
    • Tested in IE7+, Firefox, Safari (OS X), Chrome, IOS6, and various versions of Android. IE10 is now also supported!
    • Ability to upload files as soon as they are selected, or "queue" them for uploading at user's request later
    • Display specific error messages from server on upload failure (hover over failed upload item)
    • Ability to auto-retry failed uploads
    • Option to allow users to manually retry a failed upload
    • Create your own file validator and/or use some default validators include with Fine Uploader
    • Receive callback at various stages of the upload process
    • Send any parameters server-side along with each file.
    • Upload directories via drag and drop (Chrome 21+).
    • Include parameters in the query string OR the request body.
    • Submit files to be uploaded via the API.
    • Split up a file into multiple requests (file chunking/partitioning).
    • Resume failed/stopped uploads from previous sessions
    • Delete uploaded files
    • CORS support
    • Upload any Blob objects via the API.
    • Easily set and enforce a maximum item limit.
    • Upload images via paste (Chrome).
    • Standalone file & folder drag & drop module. Integrated by default into FineUploader mode.
    • Perform async (non-blocking) tasks in callbacks that influence the associated file or files
    • Upload images directly from a mobile device's camera
    • Retrieve statistics for uploaded files and receive callbacks on status changes
    • And many more!

    Or jQuery-File-Upload plugin (compatible with IE), which has got;

    • Multiple file upload: Allows to select multiple files at once and upload them simultaneously.
    • Drag & Drop support: Allows to upload files by dragging them from your desktop or filemanager and dropping them on your browser window.
    • Upload progress bar: Shows a progress bar indicating the upload progress for individual files and for all uploads combined.
    • Cancelable uploads: Individual file uploads can be canceled to stop the upload progress.
    • Resumable uploads: Aborted uploads can be resumed with browsers supporting the Blob API.
    • Chunked uploads: Large files can be uploaded in smaller chunks with browsers supporting the Blob API.
    • Client-side image resizing: Images can be automatically resized on client-side with browsers supporting the required JS APIs.
    • Preview images: A preview of image files can be displayed before uploading with browsers supporting the required JS APIs.
    • No browser plugins (e.g. Adobe Flash) required: The implementation is based on open standards like HTML5 and JavaScript and requires no additional browser plugins.
    • Graceful fallback for legacy browsers: Uploads files via XMLHttpRequests if supported and uses iframes as fallback for legacy browsers.
    • HTML file upload form fallback: Shows a standard HTML file upload form if JavaScript is disabled.
    • Cross-site file uploads: Supports uploading files to a different domain with Cross-site XMLHttpRequests.
    • Multiple plugin instances: Allows to use multiple plugin instances on the same webpage.
    • Customizable and extensible: Provides an API to set individual options and define callBack methods for various upload events.
    • Multipart and file contents stream uploads: Files can be uploaded as standard "multipart/form-data" or file contents stream (HTTP PUT file upload).
    • Compatible with any server-side application platform: Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.

    References

    Check out 10 HTML5 File Upload with jQuery Example to see some great file uploaders which works with HTML5

    Also, here at 10+ PHP Ajax Upload File Tutorials - Free Download you can choose from a lot of uploaders.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 关于logstash转发日志时发生的部分内容丢失问题
  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?