19 Jul 23:32
Re: File upload and doc type
From: Hassan Schroeder <hassan.schroeder@...>
Subject: Re: File upload and doc type
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-19 21:32:48 GMT
Subject: Re: File upload and doc type
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-19 21:32:48 GMT
On Sat, Jul 19, 2008 at 12:57 PM, Pål Bergström <rails-mailing-list@...> wrote: > > Sorry, but how hard can it be? Can Rails handle a file upload or not? I > mean other than images and make them accessible by download. Not hard at all, apparently.(Continue reading)Since I'd never done this in Rails and knew I'll need it soon, I just created a new project (Rails 2.1), installed the attachment_fu plugin and, following this handy-dandy tutorial: <http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu> :: created an upload tester in about 15 minutes. I uploaded a Word (97, .doc) file and a PDF file. And then opened the stored files successfully. So I think it's a given that Rails (or at least attachment_fu) can handle whatever binary file type you have.
Have you compared checksums of the two versions of the file you're having trouble with? Are you *sure* you downloaded it using FTP *in binary mode*? -- -- Hassan Schroeder ------------------------ hassan.schroeder@... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
Since I'd never done this in Rails and knew I'll need it soon, I just
created a new project (Rails 2.1), installed the attachment_fu plugin
and, following this handy-dandy tutorial:
<
RSS Feed