🌐 AI搜索 & 代理 主页
Skip to content

Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter

License

Notifications You must be signed in to change notification settings

sailfish009/vue-upload-component

 
 

Repository files navigation

vue-upload-component

npm npm license gzip

Vue.js file upload component The component is just a button

  • Multi-file upload
  • Upload directory
  • Drag upload
  • Drag the directory
  • Upload multiple files at the same time
  • html4 (IE 9)
  • PUT method
  • Customize the filter
  • thumbnails
  • Chunk upload

vim node_modules/send/index.js +839

var mime_type = require('mime-types')
  
SendStream.prototype.type = function type (path) {
  var res = this.res

  if (res.getHeader('Content-Type')) return

  // var type = mime.lookup(path)
  var type = mime.getType(path)

  if (!type) {
    debug('no content-type')
    return
  }

  // var charset = mime.charsets.lookup(type)
  var charset = mime_type.charsets(type)

  debug('content-type %s', type)
  res.setHeader('Content-Type', type + (charset ? '; charset=' + charset : ''))
}

Example

https://lian-yue.github.io/vue-upload-component/

Installation

npm install vue-upload-component --save

Documentation

https://lian-yue.github.io/vue-upload-component/#/documents

Vue.js 文件上传组建 组件只是一个按钮

  • 上传多文件
  • 上传目录
  • 拖拽
  • 拖拽目录
  • 多线程
  • html4(IE 9)
  • PUT 方法
  • 自定义过滤器
  • 缩略图

演示

https://lian-yue.github.io/vue-upload-component/#/zh-cn/

安装

npm install vue-upload-component --save

文档

https://lian-yue.github.io/vue-upload-component/#/zh-cn/documents

Special thanks (特别感谢)

About

Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 60.7%
  • JavaScript 36.1%
  • HTML 3.2%