Displaying 20 results from an estimated 10000 matches similar to: "Re: file_column on windows?"
2006 Jan 19
0
file_column error: tmp file created but not actual
Hi
When I submit the form with field_column, the actual
image is not
uploaded, only temp files are crreated and I dont see
actual file created and the image file name is not in
the database and get "fieldWithErrors". Then if
submit again, the actual file in created and an
database record is generated.
Here is the log file. I print @params and @wallpaper.
I find the following:
1st
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 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 Mar 02
2
How to get mime extension with file_column
Is there a way to get the MIME extension of a file_column field?
Here''s what I want to do (look for comment in before_save method):
class ProductFile < ActiveRecord::Base
belongs_to :product
file_column :file_name
def before_save
self.file_type = # something that returns the MIME type (e.g. image/jpeg)
end
end
TIA
2006 Jan 16
3
file_column error
Hi, Sebastian
I downloaded FileColumn plugin and love the concept. But when I
tried the example listed on the plugin web site, I got the following
error:
NoMethodError in Entry#new
undefined method `file_column'' for Entry:Class
My environement is Red Hat linux 9.0 with mysql 4.1. I installed
file_column under vendor/plugins. If I run "ls", I get the following
2005 Dec 31
4
How might I use file_column for incoming email attachments?
I''m writing a ''Mailman'' model that catches emails sent to my
application (kind of like backpack, I think). The trouble is that
I''d like to save image attachments in the same was that file_column
saves them--in fact, I''d really like to use a simple assignment like
photo.image = attachment to save the image in its proper place.
However,
2006 Jan 11
0
File_column : how can I resize/convert/whatever an image according to form-submitted values?
Hi guys,
I want to have a file upload form which would allow the user to ask for
certain transformations of the image before saving it - most importantly, to
resize it.
Now, how can I make an instance of FileColumn enabled model process these
imagemagick instructions?
My model looks looks somewhat like :
class Image < ActiveRecord::Base
attr_accessor :resize_dimension, :resize_to
2006 Jun 10
0
Dynamic file paths in FileColumn
I have a file uploader application in ROR using the very nice FileColumn
plugin. In looking at the source code I can see that there is a
DEFAULT_OPTION hash with some root path options and such which can be
merged from an options paramater. These static path changes are not a
problem.
My question is dynamic path options. My upload form, when you boil it
down, has two fields. The first is
2006 May 09
3
File_Column Development Dead?
I''m curious if anyone knows if development on the file_column plug in is
continuing? I''ve seen some SVN commits from awhile back but no binary
releases.
Did Sebastian speak at Canada on Rails? Anyone catch that?
What is the future of file_column?
2006 Jan 30
0
file_column content-type, filesize, etc.?
Newbie question here:
How can I extend the (awesome!) file_column plugin to provide methods for
content_type, filesize, and original file name? I know I should be able to do
this, but I can''t quite figure it out. Please help.
Thanks.
-cal
2006 May 19
1
FileColumn
I''m using Windows and Postgres 8.
I installed RMagic gem thingy and FileColumn plugin ok.
I followed instructions exactly as directed on FileColumn web site which
is very straight forward:
---model
class My_model < ActiveRecord::Base
file_column :column_for_file_name
end
-----view -upload form--set to mulitpart
<%= file_column_field "my_model",
2005 Dec 27
1
filecolumn to database
Hi,
I''m using filecolumn to upload a file to mysql blob :
_form.rhtml : file_column_field "entry", "attach"
model (rb file) : file_column :attach
How can I update controller create function to insert file in database ?
redefine model save function ? Someone has a sample source ?
Regards,
Fabian
2006 Jan 14
2
file_column, ActionMailer, and tests
Hi,
Say I have a model Event that has a file_column called ''pdf''.
I want to send out emails that contain the URL for the pdf file that''s
associated with the Event. I also want to test the emails, so I''d
need to be able to get at the URL for the pdf inside my unit tests.
I don''t see how I can use url_for_file_column in this situation.
Doing <%=
2006 Apr 05
0
FileColumn - version and not image files
Hi
I have this filecolumn:
file_column :file, :magick => { :versions => { :large => ''756x567>'' } }
Does anybody have a solution to make this also accept files that aren''t
images? Now this makes filecolumn return an error of "File invalid
image" if the file isn''t an image.
Would be nice if it, when the file is invalid image, just
2006 Jan 16
6
file_column plugin error
Hi,
I downloaded FileColumn plugin and love the concept.
But when I tried the example listed on the plugin web
site, I got the following
error:
NoMethodError in Entry#new
undefined method `file_column'' for Entry:Class
My environement is Red Hat linux 9.0 with mysql 4.1. I
installed file_column under vendor/plugins. If I run
"ls", I get the following directories:
2005 Nov 18
10
[Request] file_column configurability
I wasn''t sure where to email this request, so I am hoping the author of
file_column actually sees this. I was wondering if there were any plans to
allow some configurability in the file_column plugin. By configurability I
mean allowing the developer to define which table column is used as the
unique identifier when creating image folders. Right now it seems like it
uses the ID of the
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given
(ex. in form) url instead of uploading it manualy?
I know:
http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions
require ''open-uri''
Attachment.find_first.filename = open(url)
if not working as expected... what is interesting is that:
>> @a =
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 Feb 24
1
File Column
Has anyone any experiance with the FileColumn plugin. I''m trying to
create thumbnails, and also alow non picture uploads. Here''s some
working code, but if I try and upload a zip, it says ''File invalid
image''. Is there anyway of having both image uploads (and thumbnail
generation) while also allowing non image uploads?
class Entry < ActiveRecord::Base
2006 Jun 07
0
Create new Image Plugin?
I''m working on a CMS for some time now. I need some kind of
functionality to deal with images. As I know there are to plugins
available: SuperImage and FileColumn.
Neither of these have exactly what I want.
What I want is a plugin with the following functions:
- A poppup window (or ajax field) where you can search for, scroll
trought pictures, find the one you will have, press on that,