def determine_path_to_save
filename = @exportfilename
format = @exportformat
ext=format.downcase
notice ="¬ice="
folder_to_save = File.expand_path(Fusioncharts::Exporter::Properties.SAVEPATH)
complete_file_path = File.join(folder_to_save,filename +"." + ext)
displayFileName = filename +"." + ext
if(FileTest.exists?(complete_file_path))
notice += " File already exists."
if( !Fusioncharts::Exporter::Properties.OVERWRITEFILE)
notice+= " Using intelligent naming of file by adding an unique suffix to the exising name."
complete_file_path= Fusioncharts::Exporter::SaveHelper.generate_unique_filename(folder_to_save + '/' + filename ,ext)
displayFileName=File.basename(complete_file_path)
notice+= "The filename has changed to "+displayFileName
end
end
http_path = Fusioncharts::Exporter::Properties.HTTP_URI.gsub!(/\/$/, '')
if(http_path==nil)
http_path = Fusioncharts::Exporter::Properties.HTTP_URI
end
displayPath= File.join(http_path,displayFileName)
return complete_file_path,displayPath,notice
end