Displaying 1 result from an estimated 1 matches for "temp_image_loc".
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
...st one action which performs a
file upload. In this controller, if I don''t put "skip_before_filter
:verify_authenticity_token" at the top, the file upload doesn''t work. I
have pasted the upload action below:
def upload_image
directory = "public" + params[ :temp_Image_Location ].to_s
pRandomFileName = params[ :random_File_Name ].to_s
pFileData = params[ :Filedata ]
vFilePath = File.join( directory, pRandomFileName )
succeeded = File.open( vFilePath, "wb" ) { |vBuffer| vBuffer.write(
pFileData.read ) }
render(:xml => "<resp...