# How to check whether file is browser before submitting the f

**URL:** <https://www.ruby-forum.com/t/how-to-check-whether-file-is-browser-before-submitting-the-f/83881>\
**Category:** Ruby\
**Created:** [January 30, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/how-to-check-whether-file-is-browser-before-submitting-the-f/83881 "2007-01-30T13:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![santoshat20007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/eada6e/32.png) [@santoshat20007](https://www.ruby-forum.com/u/santoshat20007)\
**Post date:** [January 30, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/how-to-check-whether-file-is-browser-before-submitting-the-f/83881/1 "2007-01-30T13:06:06Z")

</div>

Hello ,

I am new to this ruby on rails, Help me

I have a view which has two tags, one is file\_field and other submit  
button.

How to check whether file is browser before submitting the form

---

<div class="post-metadata">

**Author:** ![santoshat20007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/eada6e/32.png) [@santoshat20007](https://www.ruby-forum.com/u/santoshat20007)\
**Post date:** [January 30, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-check-whether-file-is-browser-before-submitting-the-f/83881/2 "2007-01-30T13:21:10Z")

</div>

On Tue, 30 Jan 2007 21:06:14 +0900  
Santosh R patil [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello ,
> 
> I am new to this ruby on rails, Help me

Better to try the Rails mailing list rather than the Ruby one.

[http://groups.google.com/group/rubyonrails-talk](http://groups.google.com/group/rubyonrails-talk)

> I have a view which has two tags, one is file\_field and other submit  
> button.
> 
> How to check whether file is browser before submitting the form

This is really a JavaScript question if you want to do it  
before submitting the form.

HTH,  
Dominic
