my view file is like this..
<form action="/uploadFile" method="post" enctype="multipart/form-data">
<label>Select :
<input type="file" name="upload" />
</label>
<input type="submit" value="upload" />
</form>
but when i click on the upload buton it throws error.. ActionController::InvalidAuthenticityToken in UploadController#uploadFile and the parameters passese as {"upload"=>#<File:C:/WINDOWS/Temp/RackMultipart20110329-2804-8zapc3-0>} thogh i browsed for d:/cv.txt
my uploadFile action is like
def uploadFile
post = DataFile.save(params[:upload])
render :text => "File has been uploaded successfully"
end
and the DataFile.save method is same shown in the tutorials here... http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-file-uploading.htm
can anyone help me?plz..
_________________
my skype id is santattech.. u can send me the request.. so that we can solve problems on discussions..