# File upload

**URL:** <https://www.ruby-forum.com/t/file-upload/92535>\
**Category:** Rails\
**Created:** [April 20, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/file-upload/92535 "2007-04-20T13:47:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [April 20, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/file-upload/92535/1 "2007-04-20T13:47:05Z")

</div>

Hai

Give me an example for file upload. And tell me which one is better  
storing the file in our public(rails folder structure) folder is better  
or database?

regards  
selvaraj

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [April 20, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/file-upload/92535/2 "2007-04-20T13:50:38Z")

</div>

Selvaraj wrote:

> Hai
> 
> Give me an example for file upload. And tell me which one is better  
> storing the file in our public(rails folder structure) folder is better  
> or database?
> 
> regards  
> selvaraj

hai

i forgot to tell u that i want to upload the text file(like .txt  
,doc,xls)

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [April 20, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/file-upload/92535/3 "2007-04-20T16:07:18Z")

</div>

Questions like that are usually ignored in a community of volunteers.  
Many  
consider this type of question a “demand that you do it for me”. Perhaps  
you  
should rephrase that with something like

"Hey, I’m trying to upload a file to my site, and after following the  
directions at , I’m stuck. Can anyone look at my code  
and  
tell me where I went wrong?

You should be able to search Google for “rails upload files” and find  
your  
answers. There are several Rails plugins that will help you out and have  
excellent documentation with working examples.

Good luck… remember, if you get stuck implementing one of your  
solutions,  
I’m sure someone will help you if you can show some code 🙂

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [April 20, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/file-upload/92535/4 "2007-04-20T16:16:19Z")

</div>

Is this directed at your employee or a student? If not, we should  
exercise little civility here.

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [April 20, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/file-upload/92535/5 "2007-04-20T16:25:20Z")

</div>

or maybe we could point them to previous discussions on this topic.

[http://groups.google.com/group/rubyonrails-talk/search?hl=en&group=rubyonrails-talk&q=file+upload&qt\_g=Search+this+group](http://groups.google.com/group/rubyonrails-talk/search?hl=en&group=rubyonrails-talk&q=file+upload&qt_g=Search+this+group)  
or [http://tinyurl.com/yq77w3](http://tinyurl.com/yq77w3)

but yes, we should be polite.

just my two cents.

John

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [April 20, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/file-upload/92535/6 "2007-04-20T16:39:18Z")

</div>

John I. wrote:

> or maybe we could point them to previous discussions on this topic.
> 
> [http://groups.google.com/group/rubyonrails-talk/search?hl=en&group=rubyonrails-talk&q=file+upload&qt\_g=Search+this+group](http://groups.google.com/group/rubyonrails-talk/search?hl=en&group=rubyonrails-talk&q=file+upload&qt_g=Search+this+group)  
> or [http://tinyurl.com/yq77w3](http://tinyurl.com/yq77w3)
> 
> but yes, we should be polite.
> 
> just my two cents.
> 
> John

hai guys,

This is not good,If u know the answer u can tell. Otherwise dont  
advise to unknow people. You may familiar with this group. Dont expect  
to evry one.

When u people getting this kind of behavior.After getting some  
knowledge or from born itself.
