Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert File upload...

Replytotopic

File upload

Posted in Forums : Ask a Rails expert

 
Profile

Authority 0
Posting Rating 69
Sign in to rate this post

Hi,

I’m looking for a simple way to upload files to my website.
I’ve tried attachement_fu but there is some kind of problem that makes it impossible to use it. (the files don’t appear on the system, neither in the db).

SO my question is, do you guys know a good plugin that can handle file (pdf, word, ...) uploads?

Thanks

 
Img_7624

Authority 50
Posting Rating 99
Sign in to rate this post

First of all, don’t forget that you have to set multipart to true in the html options for your form in order for the file upload to work.

Other than that I haven’t had problems making attachment_fu work in the past. However, I’ve found that I prefer the Paperclip plugin from Thoughtbot. I find it’s simpler, and it generally does everything I want.

 
Profile

Authority 0
Posting Rating 69
Sign in to rate this post

Hi Adam, I’ve taken a look at Paperclip and it’s the plugin I was searching for.
I don’t understand why upload column didn’t work, multipart was already present in my form

 
Mahesh_new_image

Authority 37
Posting Rating 94
Sign in to rate this post

Hi Wouter,

i have used attachement_fu and file_column plugins in many of my projects. i have not faced any problem with them. these are good and mostly used in rails applications. why don’t you try fle_column plugin, its some what simple to use compared to attachement_fu.

Thank You,
Uma.

 
Profile

Authority 0
Posting Rating 69
Sign in to rate this post

I’m happy with paperclip and I think I’ll stick to it.
But could someone tell me where I could find the content types for docx, xlsx, pptx? I’ve googled and found this link (http://www.bram.us/2007/05/25/office-2007-mime-types-for-iis/) but that didn’t work.

Replytotopic

Other Recent Topics

Ask a Rails expert : nested application ApplicationController get called intead of children::ApplicationController

Ask a Rails expert : Best way to structure a database for a large/static dataset

Ask a Rails expert : Ruby Developer (ROR) - Scottish based (Remote working from within the UK)

Ask a Rails expert : Above Ground Pool Supplies

Ask a Rails expert : How to get url params in observer or model in Rails 3.1

Ask a Rails expert : What can persuade you to hire Junior Ruby devs with significant PHP experience?

Ask a Rails expert : What industry value does the Ruby or Rails Certification currently have?

Ask a Rails expert : Louis Vuitton Damier Azur Canvas specially sale ( www.salecheaplouisvuitton.com )

Ask a Rails expert : ·How to check errors/puts statements from ruby files which are under cronob

Ask a Rails expert : Louis Vuitton cheap Soft Sided Luggagespecial offer( www.salecheaplouisvuitton.com )

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel