Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Godmin Uploads is a file upload component for Godmin that uses refile for uploads.
Add the gem to the application's Gemfile
:
gem "godmin-uploads"
Or to the admin engine's gemspec
:
s.add_dependency "godmin-uploads", "~> x.x.x"
Require the gem's stylesheet and javascript:
*= require godmin
*= require godmin-uploads
//= require godmin
//= require godmin-uploads
See the refile documentation for info on how to configure storage location, set up your model etc. Once that is done, require godmin-uploads
in your application.js and application.css.
Then, simply use the uploader
in your form like so:
<%= form_for(@resource) do |f| %>
<%= f.input_field :title %>
<%= f.text_field :body %>
<%= f.uploader :attachment, preview: true, remove: false %>
<% end %>
The preview
option should only be used for image attachments.
By setting remove: false
the uploader's remove image action is hidden.
https://github.com/varvet/godmin-uploads/graphs/contributors
Licensed under the MIT license. See the separate MIT-LICENSE file.
FAQs
Unknown package
We found that godmin-uploads demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.