# Keeping uploads through form errors with attachment\_fu?

**URL:** <https://www.ruby-forum.com/t/keeping-uploads-through-form-errors-with-attachment-fu/166823>\
**Category:** Rails\
**Created:** [April 29, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/keeping-uploads-through-form-errors-with-attachment-fu/166823 "2009-04-29T22:57:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xavi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/8e8cbc/32.png) [@xavi](https://www.ruby-forum.com/u/xavi)\
**Post date:** [April 29, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/keeping-uploads-through-form-errors-with-attachment-fu/166823/1 "2009-04-29T22:57:09Z")

</div>

I’m using attachment\_fu. If the user submits a form with a file  
attachment and validation fails for some reason not related to the  
attachment, he is currently forced to choose and upload the file again.  
Is there a way to avoid this?

The old FileColumn (  
[http://www.kanthak.net/opensource/file\_column/index.html](http://www.kanthak.net/opensource/file_column/index.html) ) solves this  
according to a comment I’ve read in  
[For Attaching Files, use Paperclip](http://giantrobots.thoughtbot.com/2008/3/18/for-attaching-files-use-paperclip)  
I wonder if it’s possible to achieve the same with attachment\_fu.

xavi
