# How to check the file field empty

**URL:** <https://www.ruby-forum.com/t/how-to-check-the-file-field-empty/185046>\
**Category:** Ruby\
**Created:** [March 12, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-check-the-file-field-empty/185046 "2010-03-12T13:16:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [March 12, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-check-the-file-field-empty/185046/1 "2010-03-12T13:16:04Z")

</div>

hi,

How to check the file selected or not while uploading form in ruby or  
empty file selected

Regards,  
Raju
