From: deal bitte Date: 2012-08-09T19:57:16+09:00 Subject: Re: file upload without entering the file if params[:dump][:excel_file].blank? flash[:notice] = "Please provide a file to upload." else my code This does not work. I tried it before posting this problem.I have this piece of code in my controller Jonan S. wrote in post #1071675: > Just check that params[:dump][:excel_file] exists before you use it. > > You could also disable the upload button by default and enable it using > javascript only if they enter a value in the field. -- Posted via http://www.ruby-forum.com/.