webapp/rails/trunk/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb
# Saves the file to the file system
Saves the file to the file system
Saves the file to the file system
def save_to_storage
            if save_attachment?
              FileUtils.mkdir_p(File.dirname(full_filename))
              File.cp(temp_path, full_filename)
              File.chmod(attachment_options[:chmod] || 0644, full_filename)
            end
            @old_filename = nil
            true
          end
def save_to_storage if save_attachment? FileUtils . mkdir_p ( File . dirname ( full_filename ) ) File . cp ( temp_path , full_filename ) File . chmod ( attachment_options [ :chmod ] || 0644 , full_filename ) end @old_filename = nil true end
Saves the file to the file system
Saves the file to the file system
# TODO: This overwrites the file if it exists, maybe have an allow_overwrite option?