# File\_Column Plugins Problem

**URL:** <https://www.ruby-forum.com/t/file-column-plugins-problem/78353>\
**Category:** Engines\
**Created:** [December 5, 2006, 8:17am UTC](https://www.ruby-forum.com/t/file-column-plugins-problem/78353 "2006-12-05T08:17:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chintan\_Shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@Chintan\_Shah](https://www.ruby-forum.com/u/Chintan_Shah)\
**Post date:** [December 5, 2006, 8:17am UTC](https://www.ruby-forum.com/t/file-column-plugins-problem/78353/1 "2006-12-05T08:17:37Z")

</div>

Hi all,

For uploading the file for my web application, i m using the  
file\_column plugin.  
we are using 5 file-column object to upload 5 files. ie

file\_column1  
file\_column2  
file\_column3  
file\_column4  
file\_column5

but Accrding to my client his requirement is as below,

When uploading a combination of valid and invalid images, the failure  
results in no uploading of the good images. Instead of this behavior,  
the server should upload the good images and display a failure  
notification for the failed image. Currently, the image will not upload,  
but the name of the bad image will display as the image.

invalid types means,

1. it’s size exceeds the limit 2mb
2. it’s neither a type of .jpg nor ,bmp nor .gif nor .png

so now i m trying to solve the 1st constraints, ie

for that, i have made 1 function which check the size of the image file.  
Now what i have to do is if it’s size is out of limit then that  
file\_column option will be blank so at the time of database entry that  
file\_column obejct’s value will be null.

so pls can one help me for these, that how can i null it or how can i  
blank the file\_upload object at server side.

thnx
