Hassan Schroeder | 19 Jul 23:32

Re: File upload and doc type


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. :-)

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.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane