Displaying 1 result from an estimated 1 matches for "smruti".
Did you mean:
shruti
2010 Sep 02
7
unable to upload larger files
...on
when i use small size file everything is perfect but i when goes for
larger files i got error
this is my code
#this model file
class DataFile < ActiveRecord::Base
def self.save(upload)
name = upload[''datafile''].original_filename
directory = "//192.168.147.17/Smruti/streams"
# create the file path
path = File.join(directory, name)
# write the file
File.open(path, "wb") { |f| f.write(upload[''datafile''].read) }
end
end
#this is my controller
class UploadController < ApplicationController
def index
rende...