Displaying 1 result from an estimated 1 matches for "realuploadedfil".
Did you mean:
realuploadedfile
2006 Jul 03
1
staying in control over the case in file_column plugin
...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...