What is the best way to upload files in a modern browser

后端 未结 5 2097
孤街浪徒
孤街浪徒 2020-12-22 22:43

I want to upload a (single) file to a server and show the progress of the upload.

I know I can upload a file using HTTP POST. I\'m not familiar with web-sockets, but

5条回答
  •  礼貌的吻别
    2020-12-22 23:28

    I personally like blueimp jQuery File Upload Plugin (https://blueimp.github.io/jQuery-File-Upload/)

    File Upload widget with multiple file selection, drag&drop support, progress bars, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.

    Demos:

    • Basic
    • Basic Plus
    • Basic Plus UI
    • AngularJS

    Download (GitHub): https://github.com/blueimp/jQuery-File-Upload

提交回复
热议问题