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)
-
PUTmethod - 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 : ''))
}https://lian-yue.github.io/vue-upload-component/
npm install vue-upload-component --savehttps://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 --savehttps://lian-yue.github.io/vue-upload-component/#/zh-cn/documents