npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

danielruuth-vue-file-upload

v3.0.2

Published

file upload widget

Downloads

3

Readme

vue-file-upload

File upload component

  • drag and drop / file chooser
  • multiple upload (except for IE9)
  • add more files during upload
  • overall progress bar
  • no dependency

Original fileuploader by Frank Freiburger, modified for Laravel by Daniel Ruuth

Browser support

Same browser support as Vue.js 2

Example

<template>
  <div>
    <upload url='/upload'></upload>
  </div>
</template>

Install

npm install --save danielruuth-vue-file-upload

API

Properties

:url string

Target url for the uploaded files (post multipart/form-data).

:multiple boolean, default: false

Allow multiple files to be uploaded simultaneously.

:image boolean, default: false

Indicate that you wish to upload images.

:capture boolean, default: false

Indicates that the capture of media directly from the device's environment using a media capture mechanism is preferred. See capture attribute

:accept function(filename) returns boolean

Called before a file is about to be uploaded. Return false to reject the upload, otherwise return true.

filename: The filename (without path) of the file.

By default any file is accepted.

:done function(status, responseText, feedback)

Called when a file or a set of files has been uploaded.

status: HTTP status of the upload or undefined if no status is available (IE9).
responseText: reponse of the server.
feedback: function you can call to give a positive or negative (true/false) UI feedback about the upload.

By default, if the property is not defined, a positive feedback is send for HTTP status 2xx and 3xx

:data string

Extra data sent with files (name=data).

Credits