# Uploading csv

**URL:** <https://www.ruby-forum.com/t/uploading-csv/156587>\
**Category:** Rails\
**Created:** [December 30, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/uploading-csv/156587 "2008-12-30T13:56:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [December 30, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/uploading-csv/156587/1 "2008-12-30T13:56:28Z")

</div>

hi all,  
in my project i have to upload the csv file.i want to show the data of  
the file before submitting the form.  
how to do it…plesae help me its very urgent…

---

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [December 30, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/uploading-csv/156587/2 "2008-12-30T16:43:15Z")

</div>

Hi,

You may want to upload the file initially through AJAX, parse it and  
display  
the output for the user to validate.  
If the user submits the same, you can upload the same parsed value  
rather  
than re parsing the whole file all together.

-NAYAK

On Tue, Dec 30, 2008 at 6:26 PM, Rajkumar S. \<

---

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [December 31, 2008, 5:40am UTC](https://www.ruby-forum.com/t/uploading-csv/156587/3 "2008-12-31T05:40:09Z")

</div>

Vishwanath Nayak wrote:

> Hi,
> 
> You may want to upload the file initially through AJAX, parse it and  
> display  
> the output for the user to validate.  
> If the user submits the same, you can upload the same parsed value  
> rather  
> than re parsing the whole file all together.
> 
> -NAYAK
> 
> On Tue, Dec 30, 2008 at 6:26 PM, Rajkumar S. \<

thanks for ur reply… but i dont know how to do it as iam new bee to  
rails.iam aware of ajax and parsing… is there any websites if plesae  
sugest them or if u have code plesae send me

---

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [January 3, 2009, 8:38am UTC](https://www.ruby-forum.com/t/uploading-csv/156587/4 "2009-01-03T08:38:38Z")

</div>

Ima nw to ruby. plz tell me if there are any sites dealing with that…

raju  
Vishwanath Nayak wrote:

> Hi,
> 
> You may want to upload the file initially through AJAX, parse it and  
> display  
> the output for the user to validate.  
> If the user submits the same, you can upload the same parsed value  
> rather  
> than re parsing the whole file all together.
> 
> -NAYAK
> 
> On Tue, Dec 30, 2008 at 6:26 PM, Rajkumar S. \<
