
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-upload-component
Advanced tools
Vue.js file upload component, Support for multiple file uploads, progress, html5, html4, support ie9
Vue.js file upload component, Support for multiple file uploads, progress, html4, ie9 Html4 does not support the progress bar, file size, accept, timeout, headers, response status code error of judgment
npm install vue-upload-component --save
var FileUpload = require('vue-upload-component');
new Vue({
template: '<file-upload action="/"></file-upload>',
components: {
FileUpload: FileUpload
}
})
import FileUpload from 'vue-upload-component'
new Vue({
template: '<file-upload action="/"></file-upload>',
components: {
FileUpload
}
})
https://lian-yue.github.io/vue-upload-component/
<!-- Example file ./index.html -->
<!-- Example file ./src/example.js -->
<div id="app">
<file-upload title="Add upload files"></file-upload>
</div>
<script type="text/javascript">
var FileUpload = require('vue-upload-component');
new Vue({
el:'#app',
components: {
FileUpload:FileUpload,
},
});
</script>
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
addFileUpload
removeFileUpload
fileUploadProgress
beforeFileUpload
afterFileUpload
{
files: [
{
id: 'String',
name: 'filename String',
size: 'filesize Number',
progress: 'progress String',
active: 'active Boolean',
error: 'error String',
errno: 'errno String',
success: 'success Boolean',
data: 'Response data Object or String',
request: {
headers: {
"X-Csrf-Token": "xxxx",
},
data: {
"_csrf_token": "xxxxxx",
},
},
}
],
// Global
request: {
headers: {
"X-Csrf-Token": "xxxx",
},
data: {
"_csrf_token": "xxxxxx",
},
},
}
<file-upload :title="Add upload files" :name="file" :action="./upload.php" :accept="accept" :multiple="multiple" :size="size" :timeout="3600000"></file-upload>
FAQs
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
The npm package vue-upload-component receives a total of 25,544 weekly downloads. As such, vue-upload-component popularity was classified as popular.
We found that vue-upload-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.