search for: random_file_name

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

Did you mean: rand_file_name
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
...ller, 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 => "<response>Finished!</response>") if succeeded end...