search for: incomming_fil

Displaying 2 results from an estimated 2 matches for "incomming_fil".

Did you mean: incomming_file
2006 Aug 01
3
Upload file to file system and sql insert date errors
I''m trying to use one form to upload a file to the file system and insert a title and description field into the database. I have no problem uploading files to the file system using the code from http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles There are more fields on the form than need to be inserted into the database, name and file. I need to pull out these extra fields
2006 Mar 23
1
Multiple file uploads
...those that have a file attached. Selecting only one file in the form, the paramters look simple: "image"=>{"file_1"=>#<File:/tmp/CGI344.4>, "file_2"=>"", "file_3"=>""}, so I tried this: params[:image].each_value do |incomming_file| unless incoming_file.empty? #do file processing end end However, this is still causing the empty fields (file_2, file_3 etc) to be processed, which raises all sorts of errors as the File.methods are not available of course. I tried .nil? and various other tests but i simply can'...