# Make file\_column\_field editable after file is selected

**URL:** <https://www.ruby-forum.com/t/make-file-column-field-editable-after-file-is-selected/145921>\
**Category:** Rails\
**Created:** [August 15, 2008, 3:11am UTC](https://www.ruby-forum.com/t/make-file-column-field-editable-after-file-is-selected/145921 "2008-08-15T03:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LAB](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba8739/32.png) [@LAB](https://www.ruby-forum.com/u/LAB)\
**Post date:** [August 15, 2008, 3:11am UTC](https://www.ruby-forum.com/t/make-file-column-field-editable-after-file-is-selected/145921/1 "2008-08-15T03:11:16Z")

</div>

Hello.

I am using the file\_column plugin to upload images. I’ve noticed that  
the file\_column\_field tag produces a text field box with a browse  
button, and when the text box is clicked on, it automatically browses,  
instead of just placing the cursor in the text box. Is there a way to  
change this default behavior?

I ask because there is a scenario where once I’ve selected a file to  
upload, I can not clear it out. I have to select a different file,  
but there is no way just to clear out the file I selected at first,  
and leave the file\_column\_field empty (which is a valid case for me).  
If this text field was editable, instead of automatically browsing,  
then I could just delete the path from the field.

I’ve been searching the doc online but can’t seem to find a solution.  
There must be some options I can pass to file\_column\_field??

\<%= file\_column\_field “profile”, “photo” %\>

Thanks for any help and insight!!

LAB
