# Retaining file object

**URL:** <https://www.ruby-forum.com/t/retaining-file-object/185231>\
**Category:** Rails\
**Created:** [March 16, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/retaining-file-object/185231 "2010-03-16T13:58:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [March 16, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/retaining-file-object/185231/1 "2010-03-16T13:58:45Z")

</div>

Dear All,

```
I have a form with file upload option and others input fields. if a

```

user makes error in any input field is it possible to show the form  
again with the error msg and input field populated with the file object  
so that user can correct the mistake alone and submit the form again  
without choosing the file again.

Thanks,  
Karthik
