{"_id":"@avsolatorio/v-file-upload","_rev":"3-76e08bce0c4506887178a1a100d0b694","name":"@avsolatorio/v-file-upload","dist-tags":{"latest":"3.1.9"},"versions":{"3.1.7":{"name":"@avsolatorio/v-file-upload","version":"3.1.7","description":"File input component for Vue.js by Daniel Fernando Lourusso <daniel@dflourusso.com.br> @ https://github.com/dflourusso/v-file-upload.","author":{"name":"Aivin V. Solatorio","email":"avsolatorio@gmail.com"},"typings":"types/index.d.ts","main":"dist/v-file-upload.js","license":"MIT","scripts":{"dist":"poi build src/v-file-upload.js","dist:demo":"poi build ./demo/index.js -c ./poi.config.demo.js","start":"poi ./demo/index.js"},"keywords":["vue","upload","file-upload","vue-upload","vue-file-upload","upload-vue","file-upload-vue","v-upload","v-file-upload"],"repository":{"type":"git","url":"git+https://github.com/avsolatorio/v-file-upload.git"},"bugs":{"url":"https://github.com/avsolatorio/v-file-upload/issues"},"homepage":"https://github.com/avsolatorio/v-file-upload#readme","devDependencies":{"poi":"^9.6.13","pug":"^2.0.3","stylus":"^0.54.5","stylus-loader":"^3.0.2"},"directories":{"doc":"docs"},"dependencies":{},"gitHead":"4255058b898b41775620f416d8c8de1e8be6aff5","_id":"@avsolatorio/v-file-upload@3.1.7","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"avsolatorio","email":"avsolatorio@gmail.com"},"dist":{"integrity":"sha512-gfkzYT5kpPGIcRK+A/8UYX+hC06omDU3vUjHP6Py+B5lB7/V/5X9T/O9GYNa2920CwK8YrF9M2Tp0eaGSwLgMw==","shasum":"62ddc6ee88dc7c1a1d94472e66fc64a89dbcf018","tarball":"https://registry.npmjs.org/@avsolatorio/v-file-upload/-/v-file-upload-3.1.7.tgz","fileCount":4,"unpackedSize":16806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhoGLCRA9TVsSAnZWagAATWcP/3+jUBB7jrkcBdpfpNG2\nRl4VP8C6GyjmKlifzqtbz8YM6h3AudDzRBqbbcRU9BHw61wezkTNKSKsymUt\nJWOrmNISI7gINwlQxeqY3VAOiIF3MrsWuF8bEd/oC1Vcokx5SxPgXMuDX1P7\nuc0FGAG+iu68mg+2zIKcc+qNtQKz2DnCECf6IDZTHaq5qRMDOMRFxIQa1vsN\nprK3H5QGgNu95a+LuwtioDJNUGjpSoDbCbyUKMaxQ4wOCg7n/0MhVvUT0qoG\nGxsu+v94wYNeiwswx7DYt+TTjGRQagvY1RU2plOQ1Q8x3lsoomvpYZj0rLJg\n7A89SIDoNC4TNfzAsO2Cp3ZVo1nv8B7Tc1tjOisnUxucW/zXevddx2xqgLdA\nWGKyvA1iiUBYrr2645j5bOP1JSR1XUhngPkCyZ+MzSKQI/P/urpJz9iMx8Fx\nyHbKI0TMfaGNkcH/qOsLIYWMPkTdkPh2y7bjf33xzs3Y1x2no8SyepN/oFbY\npNC6mChdNwaH6RT0gu+Sek7kYEpG0MHiHuqsBySVYbzQ2W4Umxe7hugsNLF2\nt8rd1WELpHi8C0DCBD6poVT/hiRaTP5iVJ2kLIj0yq6CYo2Lo01+i2NPqi1f\nvlqiKFsOuQiTvDnKtJwgWVktgiAixed4W6Vjs3HdqwlrRF67Gw39H4l7/fsm\ndUtN\r\n=T3TI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClhP19fLAyYFZh6wWZqWB8zzJ6x4qs/ykUN39eka64qQIgEBW0HGVHwln8SOVsE2yTnL0SHB/oQZM5CDIhxM+2SwM="}]},"maintainers":[{"name":"avsolatorio","email":"avsolatorio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-file-upload_3.1.7_1602650506880_0.224439594359656"},"_hasShrinkwrap":false},"3.1.8":{"name":"@avsolatorio/v-file-upload","version":"3.1.8","description":"File input component for Vue.js by Daniel Fernando Lourusso <daniel@dflourusso.com.br> @ https://github.com/dflourusso/v-file-upload.","author":{"name":"Aivin V. Solatorio","email":"avsolatorio@gmail.com"},"typings":"types/index.d.ts","main":"dist/v-file-upload.js","license":"MIT","scripts":{"dist":"poi build src/v-file-upload.js","dist:demo":"poi build ./demo/index.js -c ./poi.config.demo.js","start":"poi ./demo/index.js"},"keywords":["vue","upload","file-upload","vue-upload","vue-file-upload","upload-vue","file-upload-vue","v-upload","v-file-upload"],"repository":{"type":"git","url":"git+https://github.com/avsolatorio/v-file-upload.git"},"bugs":{"url":"https://github.com/avsolatorio/v-file-upload/issues"},"homepage":"https://github.com/avsolatorio/v-file-upload#readme","devDependencies":{"poi":"^9.6.13","pug":"^2.0.3","stylus":"^0.54.5","stylus-loader":"^3.0.2"},"directories":{"doc":"docs"},"dependencies":{},"gitHead":"4255058b898b41775620f416d8c8de1e8be6aff5","_id":"@avsolatorio/v-file-upload@3.1.8","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"avsolatorio","email":"avsolatorio@gmail.com"},"dist":{"integrity":"sha512-guZS19JgsLg7tD74cH8pzpidoSyc1lGRDZDKiPnVoP6xq7DVlhbwXgtJ3b2jEseWEy4cw3+RMqqC+dIGBETTRg==","shasum":"eaffdf995c3f4c5648f5837c2c9f1b96a97c8a54","tarball":"https://registry.npmjs.org/@avsolatorio/v-file-upload/-/v-file-upload-3.1.8.tgz","fileCount":4,"unpackedSize":16878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhoZHCRA9TVsSAnZWagAAaB4P/RozHttT5LE9VqIXCLWn\nmicnbH5XsFnkaL0E2/oJ7Py/mZLyTupADdF5cjzZ2nRL5PjOlDIofGok1gpZ\nKNE/2I5ofWYYJmH7cMOxieiOWBqPPvqKxZNl30EhAI6ngq0p8Wz5LgxJ04aI\nXjS9BGHgFaOQvafcYzpQHze3HIKaXW1Rrgcd46H3i1ZHjfhx6wY5zsJy1LO/\nLrJfG6XINpieaN4nkRmS2l3mrGDIe15T+gEEAjXcRFH4DZsWyviBbVyoXiae\nLsj3ztDVeX2TXgMjFJfYE2/Bd9g+p1rCJqiaRNQD/ap8kPXdycUuAYSd/jSR\nOSHydmqXElOdaENsLkONsEVNMHpEK32Awh0Ckg0HqCyLHFQ2nkzROpb0rlhM\nWDwDwgdLJnOEcK2scsfJmEYDK72D2VANpHyDQpXuB4vgB75Blm7lxD3xHk1L\nJThjEZC7Kzxm3h4J6aNDzVCW60Nv6u0SbmEFMmdnOrINx2HolT4JfIt4NxTi\nOXuX1O8Gx50IpqfIa7yDOYhrycbgH7W3gQGX4ieILyI3W9mzKJAJfbIOuLMB\nkzy9HCJ3d/UMJ8vNtXUH3zAQ1tiyUZ9O7BKgLySFT007eIAuqC++og4F1pGG\nCkb41U9p+LFPMOGU/b9yyymtYnA7DqwDMh9jWHSivYbmlKw/isE4+51CN9IU\nzzgz\r\n=D7WQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfIg77AtwrZyGk2eKc+EsrE4Pw5xvtGzW2/AzpT8XDGAIhANdfyT1OTP6QZCqfzyWvWd5U3LuAthyqk/41wnmCFtlw"}]},"maintainers":[{"name":"avsolatorio","email":"avsolatorio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-file-upload_3.1.8_1602651718647_0.8307698674844892"},"_hasShrinkwrap":false},"3.1.9":{"name":"@avsolatorio/v-file-upload","version":"3.1.9","description":"File input component for Vue.js by Daniel Fernando Lourusso <daniel@dflourusso.com.br> @ https://github.com/dflourusso/v-file-upload.","author":{"name":"Aivin V. Solatorio","email":"avsolatorio@gmail.com"},"typings":"types/index.d.ts","main":"dist/v-file-upload.js","license":"MIT","scripts":{"dist":"poi build src/v-file-upload.js","dist:demo":"poi build ./demo/index.js -c ./poi.config.demo.js","start":"poi ./demo/index.js"},"keywords":["vue","upload","file-upload","vue-upload","vue-file-upload","upload-vue","file-upload-vue","v-upload","v-file-upload"],"repository":{"type":"git","url":"git+https://github.com/avsolatorio/v-file-upload.git"},"bugs":{"url":"https://github.com/avsolatorio/v-file-upload/issues"},"homepage":"https://github.com/avsolatorio/v-file-upload#readme","devDependencies":{"poi":"^9.6.13","pug":"^2.0.3","stylus":"^0.54.5","stylus-loader":"^3.0.2"},"directories":{"doc":"docs"},"dependencies":{},"gitHead":"4255058b898b41775620f416d8c8de1e8be6aff5","_id":"@avsolatorio/v-file-upload@3.1.9","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"avsolatorio","email":"avsolatorio@gmail.com"},"dist":{"integrity":"sha512-rT4XBOtElkVVoxSmxAKOM85XNArtuhODSz+h81hG33DvCNej1MwJpcQwJhiO+J/2kvjaWsfRLbaP+aWG0UgESQ==","shasum":"ff7f9e7e875aab9c4fe94f0d02198e4c29ca9fd6","tarball":"https://registry.npmjs.org/@avsolatorio/v-file-upload/-/v-file-upload-3.1.9.tgz","fileCount":4,"unpackedSize":16878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhotPCRA9TVsSAnZWagAAoCEQAIBh8GwiPC45lDUSuE9H\nONDEgPW+CBxuIHxWXoLNmAAp2ZrtG69JsYrutkEkKAz9IhTYr94eTp3d4uJQ\nm63xepbQvipE8hTJtUu1U5eWetpsmHlVwhMyrD4XgnSRtsTtxYyGP+1J3no7\nbZSGE5D2hMmWdDYR5sjAiPorlcNxm3x91VndOuqxTmf81Yz7z0K0VO0THIyA\nDqWpgU9Xtw+ez/gjQ6CrQboaGXgWKmCGhncdXRl/FzSkpN4nXaD26GeBS4Gz\nuUpMIHOK52Qgmk61FozS70O3ySwYei8Nm48xssMIxBlIwlhtfm8Ghc1L3ol+\nRQGYUhixvD1mdsSYKfeAXxFxlUc0oe0Nlh3B2FLBlbNsNoXrTTOdoNRt/Kdz\nxFMWa3bnSZmO/KiM5USZ3DbY1lRdK8nk0cX4ZtphWb8c8XFh2779uTnR7IRV\nhYYUT+GT6avSVvzskLmeOE6tDOC6UdNQS6ThL8SY1t2n8S9csjz+CSBZCCRZ\nFkqJ2DD/QLgq5DjqOChMddUdcSHMdG5lj6DA3xlULOhx3OUdfzSJ//uvG72f\nlyldPdJDK+PrhZ9CYhXDshS0fGnYc0FGqS+OwZ3bZt2L66V8hbCA49i5Yhqw\n5kqKVK/d8a5Fywdz9HMDgxjR+jBt5y2W0lTfCmDoaj3I7ptFpel/wWc7PpcO\n+TbN\r\n=FZWG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOeknZHi+tTZqUHnvp/BPaJ4QgZ14QQqQFPxZ0P9wFyAiEA0davwIeiGn3/kIAJBUypAdIajvsoN17tGkpv5fgCJB0="}]},"maintainers":[{"name":"avsolatorio","email":"avsolatorio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-file-upload_3.1.9_1602653007098_0.8088421911073664"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-14T04:41:46.833Z","3.1.7":"2020-10-14T04:41:47.006Z","modified":"2022-04-04T16:48:55.820Z","3.1.8":"2020-10-14T05:01:58.777Z","3.1.9":"2020-10-14T05:23:27.206Z"},"maintainers":[{"name":"avsolatorio","email":"avsolatorio@gmail.com"}],"description":"File input component for Vue.js by Daniel Fernando Lourusso <daniel@dflourusso.com.br> @ https://github.com/dflourusso/v-file-upload.","homepage":"https://github.com/avsolatorio/v-file-upload#readme","keywords":["vue","upload","file-upload","vue-upload","vue-file-upload","upload-vue","file-upload-vue","v-upload","v-file-upload"],"repository":{"type":"git","url":"git+https://github.com/avsolatorio/v-file-upload.git"},"author":{"name":"Aivin V. Solatorio","email":"avsolatorio@gmail.com"},"bugs":{"url":"https://github.com/avsolatorio/v-file-upload/issues"},"license":"MIT","readme":"# v-file-upload\n\n> File upload component for Vue.js\n\n<p>\n  <a href=\"https://www.npmjs.com/package/v-file-upload\"><img src=\"https://img.shields.io/npm/dm/v-file-upload.svg\" alt=\"Downloads\"></a>\n  <a href=\"https://www.npmjs.com/package/v-file-upload\"><img src=\"https://img.shields.io/npm/v/v-file-upload.svg\" alt=\"Version\"></a>\n  <a href=\"https://www.npmjs.com/package/v-file-upload\"><img src=\"https://img.shields.io/npm/l/v-file-upload.svg\" alt=\"License\"></a>\n</p>\n\n## Installation\n\n### Using yarn\n\n`yarn add v-file-upload`\n\n### Using npm\n\n`npm i --save v-file-upload`\n\n## Demo\n\n[DEMO](http://dflourusso.github.io/v-file-upload)\n\n## Usage\n\n### As component\n\n```js\nimport Vue from 'vue'\n\nimport FileUpload from 'v-file-upload'\n\nVue.use(FileUpload)\n```\n\n### As service\n\n```js\nimport { FileUploadService } from 'v-file-upload'\n```\n\n## Examples\n\n### As component\n\n```html\n<template>\n  <file-upload :url='url' :thumb-url='thumbUrl' :headers=\"headers\" @change=\"onFileChange\"></file-upload>\n</template>\n\n<script>\nimport Vue from 'vue'\nimport FileUpload from 'v-file-upload'\nVue.use(FileUpload)\n\nexport default {\n  data () {\n    return {\n      url: 'http://your-post.url',\n      headers: {'access-token': '<your-token>'},\n      filesUploaded: []\n    }\n  },\n  methods: {\n    thumbUrl (file) {\n      return file.myThumbUrlProperty\n    },\n    onFileChange (file) {\n      // Handle files like:\n      this.fileUploaded = file\n    }\n  }\n}\n</script>\n```\n\n#### Properties\n\n| Name                    | Type     | Required | Default         | Info                                                                        |\n| ----------------------- | -------- | -------- | --------------- | --------------------------------------------------------------------------- |\n| **url**                 | String   | True     |                 | Url to POST the files                                                       |\n| **thumb-url**           | Function | True     |                 | Method that should returns the thumb url for the uploaded file              |\n| **accept**              | String   | False    | .png,.jpg       | File input accept filter                                                    |\n| **headers**             | Object   | False    | {}              | Headers for the request. You can pass auth tokens for example               |\n| **btn-label**           | String   | False    | Select a file   | Label for the button                                                        |\n| **btn-uploading-label** | String   | False    | Uploading files | Label for the button when the upload is in progress                         |\n| **max-size**            | Number   | False    | 15728640 //15Mb | Max size for the file                                                       |\n| **additional-data**     | Object   | False    | {}              | Additional data for the request                                             |\n| **unique-id**           | String   | False    | '000'           | Helpful when using more than one instance of the component on the same page |\n\n#### Events\n\n| Name         | Params                           | Info                                                                       |\n| ------------ | -------------------------------- | -------------------------------------------------------------------------- |\n| **success**  | _event_: XMLHttpRequest event    | Triggered after POST success                                               |\n| **error**    | _event_: XMLHttpRequest event    | Triggered after POST error                                                 |\n| **change**   | _files_: Array of uploaded files | Triggered after add or remove a file                                       |\n| **progress** | _progress_: Progress percentage  | Triggered while the upload is in progress indicating the upload percentage |\n\n### As service\n\n```js\nimport { FileUploadService } from 'v-file-upload'\nexport default {\n  data() {\n    return {\n      url: 'http://your-post.url',\n      headers: { 'access-token': '<your-token>' }\n    }\n  },\n  methods: {\n    mySaveMethod(file) {\n      let fileUpload = new FileUploadService(\n        this.url,\n        this.headers,\n        this.onProgress\n      )\n      fileUpload\n        .upload(file, { doc_id: 1 })\n        .then(e => {\n          // Handle success\n        })\n        .catch(e => {\n          // Handle error\n        })\n    },\n    onProgress(event) {\n      // Handdle the progress\n    }\n  }\n}\n```\n\n## Development\n\n`yarn dist`\n\n## Author\n\n* [Daniel Fernando Lourusso](http://dflourusso.com.br)\n\n## License\n\nThis project is licensed under\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n","readmeFilename":"README.md"}