using file_column plugin, if I upload IMG0001.JPG, I get files similarly
named IMG0001-thumb.JPG, etc. but if I upload img00002.jpg, I get files
img00002-thumb.jpg, etc.
This is tacky in terms of my counting on a consistency when implementing
views.
My inclination is to start hacking away at this section of
file_column.rb:
class PermanentUploadedFile < RealUploadedFile # :nodoc:
def initialize(*args)
super *args
@dir = File.join(store_dir,@instance.id.to_s)
@filename = @instance[@attr]
@filename = nil if @filename.empty?
end
something like
@filename = @instance.lower[@attr]
instead of
@filename = @instance[@attr]
but before I start hacking brilliantly conceptualized code with
illogical luck, I wonder if I am not not missing something somewhere
that would make this much simpler.
Craig