{"_id":"@aacassandra/jquery_upload_preview","_rev":"1-898e4084a544924bfd38f68cddd26bb8","name":"@aacassandra/jquery_upload_preview","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aacassandra/jquery_upload_preview","version":"0.0.1","description":"This jQuery plugin provides an easy way to preview your uploads before they're actually uploaded to the server.","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/aacassandra/jquery_upload_preview.git"},"keywords":["jquery_upload_preview"],"author":{"name":"Alauddin Afif Cassandra","email":"alauddinafifcassandra@programmer.net","url":"https://aacassandra-github.web.app/home"},"license":"MIT","bugs":{"url":"https://github.com/aacassandra/jquery_upload_preview/issues"},"homepage":"https://github.com/aacassandra/jquery_upload_preview#readme","gitHead":"cc17f1d52beb6c718a16e9a3afdff63ec175c398","_id":"@aacassandra/jquery_upload_preview@0.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-DKM1JhZ3bCFjFec+4I0EAPCEMyHiSa6DN5DhlmNnWAx0eJhRS8jmHV1cvTnsr91CLD5EwvKTPp3moj9XVojptQ==","shasum":"8e0e539ae5d2dcf9be60e876c1395937b79371a8","tarball":"https://registry.npmjs.org/@aacassandra/jquery_upload_preview/-/jquery_upload_preview-0.0.1.tgz","fileCount":9,"unpackedSize":104372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/Y7bCRA9TVsSAnZWagAA0IEP/0UNwylM242q+RRAAb1M\nJAsaJyYWEM2Clh4eH/xGsPvfXvpo5p55j0580jNG6hrGAHZYCix5CDSLepox\n9W8VJ5BCSWMW5hlmMcYQbnVQLNKG7g0ldRWUNuUff6a8gd1B2poBGLEmArON\nTYegEp0JQm8whs+/hFjZmpu7GBsvPfpWAknzwxemBGlKalDjqAptqIYL8Djj\njy7Tr9O63aSCgeeCgVCQI26eJHn5+ejCZy6nMSvEeI5t8f0OIPza4rJHMzX0\n2gzSfz8DC5qQOWYZEbbNBsKkmeenPkjBS8z/EQ/pIKjxmdmb+8bwGmIa8eFO\n1XH2sgV5tOuT+imM7Utk0LFQbQrt1wLNOFkdiFKVPOFHuWoKAf8dNaQwgrbW\nejYhjr5NCG2GH184dr3qNJUwbHaMvpYkiTpEJyH3w7lZyGBjEBRBduyM4pJH\nojlD2dla5Mclm44MQ12Sp0dpv0evn2RO9HvulEwF08Gso/Yhcy3MXbdxSr8q\noZMiEfZC69mpKW64gFyA7KiCpTLNa89sSR1tbPhY3av8IHAoN2T/TCSECd+U\nIK93yOT9zYb4NyEQcbqi5+LAXC0lXIcqxAT1MS2n/dZaPBBrsvjv083oHdAA\nfl+YqoGzn9BQo3fSqnwhe8hNh4X4bXJ3E0HuJsMaMyD/Kv/4BTOPYsv2FMtS\nOv95\r\n=LgQn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsbEP6kIa2WO0XMxVz3FF0XH1HUA2wHKXaWToBxjBUZAiAleShWJX1MiVI4GDQT/N0OU/k7xIGGAFJIyme0b5+YFg=="}]},"maintainers":[{"name":"aacassandra","email":"alauddinafifcassandra@programmer.net"}],"_npmUser":{"name":"aacassandra","email":"alauddinafifcassandra@programmer.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery_upload_preview_0.0.1_1593675483007_0.5169158230848201"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-02T07:38:02.940Z","0.0.1":"2020-07-02T07:38:03.159Z","modified":"2022-04-04T10:54:54.950Z"},"maintainers":[{"name":"aacassandra","email":"alauddinafifcassandra@programmer.net"}],"description":"This jQuery plugin provides an easy way to preview your uploads before they're actually uploaded to the server.","homepage":"https://github.com/aacassandra/jquery_upload_preview#readme","keywords":["jquery_upload_preview"],"repository":{"type":"git","url":"git+https://github.com/aacassandra/jquery_upload_preview.git"},"author":{"name":"Alauddin Afif Cassandra","email":"alauddinafifcassandra@programmer.net","url":"https://aacassandra-github.web.app/home"},"bugs":{"url":"https://github.com/aacassandra/jquery_upload_preview/issues"},"license":"MIT","readme":"# Upload Preview jQuery Plugin\n\n## What is that?\n\nThis jQuery plugin provides an easy way to preview your uploads before they're actually uploaded to the server. So if you selected an image or audio file from your hard drive, it will generate a live preview of the selected image or audio player for the audio file.\n\n***\n\n## How it works\n\nTo get access to the not uploaded data, we can use the HTML5 file reader api. This api provides reading local files. This step is pretty important, because we need to this data in order to show it in the browser window. To get more information about the file reader, you can read the [official documentation](http://www.w3.org/TR/FileAPI/).\n\n***\n\n## Download\n\nGo to <tt>assets/js/</tt> folder.\n\n***\n\n## Installation\n\n**1. Copy jQuery & plugin:**\n\n    <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script>\n    <script type=\"text/javascript\" src=\"assets/js/jquery.uploadPreview.min.js\"></script>\n\n**2. Set up your upload form e.g.:**\n\n    <div id=\"image-preview\">\n      <label for=\"image-upload\" id=\"image-label\">Choose File</label>\n      <input type=\"file\" name=\"image\" id=\"image-upload\" />\n    </div>\n\n**3. Load the plugin function as often as you need and fill it with the parameters:**\n\n    <script type=\"text/javascript\">\n    $(document).ready(function() {\n      $.uploadPreview({\n        input_field: \"#image-upload\",   // Default: .image-upload\n        preview_box: \"#image-preview\",  // Default: .image-preview\n        label_field: \"#image-label\",    // Default: .image-label\n        label_default: \"Choose File\",   // Default: Choose File\n        label_selected: \"Change File\",  // Default: Change File\n        no_label: false,                // Default: false\n        success_callback: null          // Default: null\n      });\n    });\n    </script>\n\n***\n\n## Customization\n\nYou're free to customize the CSS and HTML for the input, preview & label fields. Feel free to change it as you wish. There's no need that you put it all together as you can see in step 2. The preview box might be located somewhere else on your page as the input field is.\n\n***\n\n## Examples\n\nhttp://opoloo.github.io/jquery_upload_preview/\n\n***\n\n## License\n\n**The MIT License (MIT)**\n\nCopyright (c) 2013 Opoloo GbR\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","readmeFilename":"README.md"}