Displaying 20 results from an estimated 50000 matches similar to: "setting different file_column options for certain files"
2006 Jul 27
0
Separating file_column upload directory by account
I''m working on an app right now that uses
http://www.kanthak.net/opensource/file_column/index.html Sebastian Kanthak''s
file_column plugin for file uploads. The usual directory structure it saves
to is:
model/attr/id/filename
For my current project, I''d like to separate uploads by account so that it''s
easier to monitor an account''s resource usage.
2006 Jun 05
1
file_column permissions
this is getting frustrating...
i installed file_column without a hitch for the first time to just play
around with. using the exact same steps as before, i try to use it with
one of my actual applications, and i get "permission denied" errors. i
figure there might be some conflict with my application so just for
kicks i do the exact same thing i did the first time to test
2006 Jun 07
7
file_column image versions
does anyone know much about resizing different versions of images with
file_column? i tried it and everything works fine, but my question is
can you do more than just make sizes with a version of image? i''m
working on a photo album and i would like to resize the image to a
medium size, but create a thumbnail as well and crop anything left to
make the thumbnail a perfect square.
--
2006 Mar 02
0
path problem with file_column and :magick options
Hi there,
I''m having some problems wityh the :magick options in file_coumn and
wondered if anyone else had any similar ones:
basically, file_column is working fine for me as is, but whenever I try
to do an automatic resize or thumbnail I get the error ''invalid image''.
It seems to be a path issue as I get:
unable to open image
2006 Feb 03
3
File_column and rmagick options
Hi,
Currently I''m using the file_column plugin to upload images and save
multiple copies of each at 3 different resoltions:
file_column :name, :magick => {
:versions => { "thumb96" => "96x150>", "medium250" =>
"250x400>", "large480" => "480X640>" }
}
I am wondering if
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
I''m trying to use file_column in an app I''m writing. Simple file uploads
are working fine.
However, when I try and use the :magick options to make resized
versions, WEBrick dies.
This is the Media model:
class Media < ActiveRecord::Base
file_column :media_item,
:magick => {
:versions => {
:thumb => {:size =>
2006 Jun 23
0
Overriding a file_column attribute in model
I have a user model subclassed into Employees and Managers using STI. I
am using FileColumn to manage images, in this case logos. If an Employee
doesn''t have a logo of its own, I want my app to use the Manager''s logo
in views.
I did the following in models/users.rb:
-------
class User < ActiveRecord::Base
file_column :logo
end
class Employee < User
belongs_to
2006 Jan 25
0
file_column and image attributes
Hi,
I have included the use of file_column in my app and it works great.
I noticed that by default this plugin doesn''t account for image width
and height attributes. I take it that most developers using this
plugin are simply not recording or outputting this meta data so that
the browser is basing the page rendering on the actual sizes of the
embedded images rather than width
2006 Jun 20
0
file_column Trying to Create Thumbnails of Non-Image Files??
Howdy.
We use the handy file_column plug-in in some of our apps.
We have a model with a file field and we upload both images and non-images
into this field.
It is specified as follows:
file_column :file_uri, :magick => {:versions => {:thumbnail => {:size =>
''200x''}}}
Well, it works great for images but for non-images, the save fails. The root
cause is an
2006 Mar 16
0
problem with file_column storing images and other files
I have a model called ProductFiles which associates an arbitrary
amount of image and documents with a product. I am using the
file_column plugin to manage the upload and storage of the images,
like so:
class ProductFile < ActiveRecord::Base
# Accepted MIME types, mime types that are not part of this list are rejected
MIME_EXTENSIONS = {
"image/gif" => "gif",
2018 Feb 10
0
Options for custom CCState, CCAssignFn, and GlobalISel
Hi LLVM developers,
I am not available from February 11th to February 25th due to Chinese
Spring Festival and my sincere thanks goto:
Anna Zaks:
She lead me to the LLVM family and reviewed my patch for clang
analyzer MallocChecker carefully and patiently. Дуже дякую
Artem Dergachev:
He reviewed my patches for clang analyzer some Checkers carefully.
Большое спасибо
Dylan McKay:
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi,
I''m on Windows and getting the following error while trying to use
file_column with RMagick,
uninitialized constant Magick
C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
#{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in
`file_column''
I installed file_column by
2006 Jul 20
1
file_column - assigning with an actual file rather than a multipart
Hi there,
I''m using the wonderful file_column and have struck an issue that
someone might have seen before.
My images already sit on the server. So, instead of passing a
multipart message I''m sending a file object.
Something like...
f = File.new("public/gallery_images/builder.png")
p = Product.find_first
p.image = f
p.save
On the save I recieve an error which
2006 Feb 13
3
file_column: uninitialized constant Magick
I am getting this following error when using file_column with RMagick:
uninitialized constant Magick
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:200:in `const_missing''
./script/../config/../vendor/plugins/rails_file_column/plugins/
file_column/branches/kyle/lib/file_column.rb:621:in `file_column''
2006 Apr 14
5
state_models plugin and file_column?
I was looking at Kyle Mawell''s extremely nifty-looking StateModels
plugin
http://www.kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance
and before I go down the road with it, I was wondering if anyone has
used it with file_column.
The way file_column deals with an uploaded file -- by storing it to the
filesystem in a path that employs the model name and id --
2006 Mar 16
2
Questions about file_column plugin
Hi!
I''ve got 2 models - let''s call them User and Image. User has_many
images. (Thanks to Mark Reginal James :) ) I have a single form where i
can create a user and add to him any number of images, which are
uploaded using file_column plugin.
Now 3 questions:
1. How to change the default path where file_column plugin saves images,
so it will save them in a directory, which
2006 Feb 16
1
file_column problem
I cannot get the file_column plugin to work. Probably something stupid
I am doing wrong as I am pretty much a newbie...
1. I added a varchar column to my table called "image"
2. This is my class:
class User < ActiveRecord::Base
file_column :image, :magick => { :geometry => "80x80>" }
attr_accessor :new_password
... rest of class
3. In my controller I
2006 Jul 13
0
file_column
Hello all, another rails newbie here.
I''m working on an project to simply upload pictures with some extra
information, I was able to get uploads working thanks to file_column,
however, a couple things are troubling me. First of all, according to
the file_column website, displaying images should go like this:
<%= image_tag url_for_file_column("entry", "image")
2006 Feb 17
0
file_column generating random empty images
Hi all,
I emailed Sebastian awhile back about this, but I know he is busy,
so I''m asking for your help.
I''m using the latest version of file_column from SVN, or the non-SVN
version (doesn''t matter),
but on some files, file_column will create 0kb files.
The tmp directory will contain the correct file size, and I copied the
temp over the 0kb file, and then it
2006 Sep 16
0
file_column - on_save Proc and marsheling
Hi All,
Using file_column, when I set a file_column field to nil file_column
adds an on_save method using a Proc. This blows away marshalling and
hence the ability to store this model into a session once I have
nilified the field.
def on_save(&blk)
@on_save ||= []
@on_save << Proc.new
end
Has anyone got a fix or workaround for this?
I am using file_column 0.3.1