# File uploads

**URL:** <https://www.ruby-forum.com/t/file-uploads/146924>\
**Category:** Rails\
**Created:** [August 26, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/file-uploads/146924 "2008-08-26T21:21:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bouldr-matt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85e7bf/32.png) [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Post date:** [August 26, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/file-uploads/146924/1 "2008-08-26T21:21:29Z")

</div>

Hi all,

I’m trying to add a file upload facility to a project I’m working on but  
I can’t work it out.

I’ve read the RoR wiki on uploading files, and the cookbook, but the  
examples don’t seem to work for me.

What I have is a model “record” which contains some data. It has\_many’s  
another model “upload” which should hold the filename, content-type and  
size as well as a title for the upload.

How would I go about letting the user upload the file and specify the  
necessary information?

Pointers to any tutorials or examples that are relevant to my situation  
would be very helpful.

Thanks

Matt

---

<div class="post-metadata">

**Author:** ![bouldr-matt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85e7bf/32.png) [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Post date:** [August 26, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/file-uploads/146924/2 "2008-08-26T23:22:17Z")

</div>

file\_column plugin can help u out. just google for it.

---

<div class="post-metadata">

**Author:** ![bouldr-matt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85e7bf/32.png) [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Post date:** [August 26, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/file-uploads/146924/3 "2008-08-26T23:37:30Z")

</div>

KMiller wrote:

> Possibly try the attachment\_fu plugin!  
> [http://almosteffortless.com/2007/03/25/working-with-attachment\_fu/](http://almosteffortless.com/2007/03/25/working-with-attachment_fu/)

On a quick glance that looks to be a very useful plugin. It’s late now  
but I’ll take a look at it later 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![bouldr-matt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85e7bf/32.png) [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Post date:** [August 26, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/file-uploads/146924/4 "2008-08-26T23:19:56Z")

</div>

Possibly try the attachment\_fu plugin!  
[http://almosteffortless.com/2007/03/25/working-with-attachment\_fu/](http://almosteffortless.com/2007/03/25/working-with-attachment_fu/)

On Aug 26, 12:21 pm, Matt H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
