![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Let's assume an model class named Entry, where we want to define the "image" column as a "file_upload" column.
class Entry < ActiveRecord::Base file_column :image end
every entry can have one uploaded file, the filename will be stored in the "image" column
files will be stored in "public/entry/image/<entry.id>/filename.ext"
Newly uploaded files will be stored in "public/entry/tmp//filename.ext" so that they can be reused in form redisplays (due to validation etc.)
in a view, "<%= file_column_field 'entry', 'image' %> will create a file upload field as well as a hidden field to recover files uploaded before in a case of a form redisplay
in a view, "<%= url_for_file_column 'entry', 'image' %> will create an URL to access the uploaded file. Note that you need an Entry object in the instance variable @entry for this to work.
easy integration with RMagick to resize images and/or create thumb-nails.
Just drop the whole directory into your application's "vendor/plugins" directory. Starting with version 1.0rc of rails, it will be automatically picked for you by rails plugin mechanism.
Please look at the rdoc-generated documentation in the "doc" directory.
There are extensive unittests in the "test" directory. Currently, only MySQL is supported, but you should be able to easily fix this by looking at "connection.rb". You have to create a database for the tests and put the connection information into "connection.rb". The schema for MySQL can be found in "test/fixtures/mysql.sql".
You can run the tests by starting the "*_test.rb" in the directory "test"
Bug reports (as well as patches) and feedback are very welcome. Please send it to sebastian.kanthak@muehlheim.de
FAQs
Unknown package
We found that file_column 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.