
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Integrate Matias Meno's Dropzone awesome file upload JS library right into the Asset pipeline of your Rails apps.
The latest version of this gem bundles Dropzone v5.7.1.
If you depend on Dropzone's 4.x branch, you need to specify gem 'dropzonejs-rails', '~> 0.7.4'
in your Gemfile, otherwise you'll get 5.x.
If you depend on Dropzone's 3.x branch, you need to specify gem 'dropzonejs-rails', '~> 0.5.3'
in your Gemfile, otherwise you'll get 4.x.
First add dropzonejs-rails
to your Gemfile and, as you already know, bundle
it and then restart your Rails app:
# On your Gemfile
gem 'dropzonejs-rails'
$ bundle install
After that, you need to make dropzone.js
available on your pages. To do that, you can add it to your application.js
file, like this:
//= require dropzone
And if you would like to use one of the styles bundled with Dropzone, add to your application.css
:
*= require dropzone/basic
or
*= require dropzone/dropzone
And Bam! - you're all set.
Go to this secret place.
DO NOT - I repeat - DO NOT bump version numbers. Unless you really need to.
rake dropzone:check
to see if there is a newer version of Dropzone available.rake dropzone:replace
- it'll download the files for you.rake dropzone:bump
- it'll download the files, commit and release them for you.app/
directory so that Rails 4 adds them to the Sprockets
pipeline. Kudos to @senny for pointing this out.(c) Copyright 2013-2020 José Nahuel Cuesta Luengo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that dropzonejs-rails 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.