# Optional Image Upload

**URL:** <https://www.ruby-forum.com/t/optional-image-upload/107613>\
**Category:** Rails\
**Created:** [June 24, 2007, 2:08am UTC](https://www.ruby-forum.com/t/optional-image-upload/107613 "2007-06-24T02:08:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 24, 2007, 2:08am UTC](https://www.ruby-forum.com/t/optional-image-upload/107613/1 "2007-06-24T02:08:08Z")

</div>

Attachment\_fu is making an assumption that image will always be  
uploaded. This is causing problem in my application where the field is  
optional. Does anyone know how to make the image upload optional  
without blowing up the app?

Is there any other plugin that does not make such an assumption? TIA.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 24, 2007, 2:25am UTC](https://www.ruby-forum.com/t/optional-image-upload/107613/2 "2007-06-24T02:25:41Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Attachment\_fu is making an assumption that image will always be  
> uploaded. This is causing problem in my application where the field is  
> optional. Does anyone know how to make the image upload optional  
> without blowing up the app?
> 
> Is there any other plugin that does not make such an assumption? TIA.

I haven’t tried attachment\_fu, but the file\_column plugin lets you  
specify (or omit) validates\_presence\_of just like you would with any  
other attribute.

Chris K.
