search for: newspipe

Displaying 1 result from an estimated 1 matches for "newspipe".

Did you mean: newspine
2007 Aug 03
6
Problems saving an uploaded image to an app folder
...;' on my picture instance): #in class Picture attr_accessor :file_data def picture_file=(input_data) self.filename = input_data.original_filename self.content_type = input_data.content_type.chomp self.file_data = input_data.read end def write_to_disc #save the picture to newspipe/data/pictures with the name ''#{self.id}.extension'' new_filename = "#{self.id}.#{self.content_type.split("/").last}" if self.file_data.write("C:\\code\\InstantRails\\rails_apps\\newspipe\\data\\pictures\\data\\pictures\\#{new_filename}")...