Drupal 7 Form API file field - not recognizing the imported file
I tried #file_managed instead of the file, and then I am able to upload the files into the application. But, this option stores the file in managed_file table in the database with a temporary storage. 
The file details are not visible in the dsm() (devel module).