File_column repository broken?

I really want to try out file_column but the repository seems to be down
for me. I added it to my repository list and script/plugin is unable to
see anything in it.

I downloaded an archive from the website but it is not clear to me which
files need to be installed to which subdirs of my RoR project.

Anyone else having this issue with the repository? I am able to see
other repositorys no problem.

Thanks in advance.

On 7/7/06, Mike K. [email protected] wrote:

Thanks in advance.


Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

The repo is hosted on a free SVN service, which is also down. No idea
why. You can download my version of file_column, which differs from
the main one (mostly by using mogrify ... instead of RMagick) in
undocumented ways.

http://svn.kylemaxwell.com/file_column/


Kyle M.
Chief Technologist
E Factor Media // FN Interactive
[email protected]
1-866-263-3261

On Fri, 2006-07-07 at 19:29 -0400, Kyle M. wrote:

Thanks in advance.

The repo is hosted on a free SVN service, which is also down. No idea
why. You can download my version of file_column, which differs from
the main one (mostly by using mogrify ... instead of RMagick) in
undocumented ways.

http://svn.kylemaxwell.com/file_column/


speaking of file_column (and not wishing to steal this thread)…

I set it up and am running it on Linux and when I plug my SD memory
card, the files are all lower case and file_column/rmagic do their thing
and the file name remains all lower case. When I went to my client’s
office and stuck the same SD card into their Macintosh, the picture file
names were all upper case and the files transferred by
file_column/rmagic were all upper case which is a pita with view code
manipulation because I now have to accommodate any scenario.

Has anyone come up with a better fix than view code?

Craig

Thanks, I grabbed the archive, figured out how to manually install, and
am now running. Apprciate you confirming the server is down. Now I need
to figure out how to update a file for a given record.

For example if I have a field called image in Entry, and the user has
already uploaded an image file, I want to enable the user to replace the
file when he edits the record.

Perhaps I need to do a before_update callback in Entry, and compare the
tmp uploaded file to the one in the database, and if different delete
the file and allow the new one to be placed in the filesystem and on the
db?

Anyone done this?

I set it up and am running it on Linux and when I plug my SD memory
card, the files are all lower case and file_column/rmagic do their thing
and the file name remains all lower case. When I went to my client’s
office and stuck the same SD card into their Macintosh, the picture file
names were all upper case and the files transferred by
file_column/rmagic were all upper case which is a pita with view code
manipulation because I now have to accommodate any scenario.

Look towards the end of lib/file_column.rb for

def self.sanitize_filename …


Kyle M.
Chief Technologist
E Factor Media // FN Interactive
[email protected]
1-866-263-3261

Thanks, I grabbed the archive, figured out how to manually install, and
am now running. Apprciate you confirming the server is down. Now I need
to figure out how to update a file for a given record.

For example if I have a field called image in Entry, and the user has
already uploaded an image file, I want to enable the user to replace the
file when he edits the record.

Perhaps I need to do a before_update callback in Entry, and compare the
tmp uploaded file to the one in the database, and if different delete
the file and allow the new one to be placed in the filesystem and on the
db?

Very similar to allowing a user to update his avatar image and only
enbaling him to have 1 image stored at a time.

Anyone done this?

On Fri, 2006-07-07 at 20:54 -0400, Kyle M. wrote:

def self.sanitize_filename …


sort of like, add

filename = filename.downcase

just before it returns filename ?

That should work

I wasn’t going to hack the code if there was something I missed but this
should suffice

Thanks

Craig

On 7/7/06, Kyle M. [email protected] wrote:

def self.sanitize_filename …

I had a problem with file_column under OS X also and had to modify the
source to get it to work with mixed case / upper case file names.
Here’s a link to the solution (and the thread discussing it):

http://www.devlists.com/message/35524

jt