DBServer/app/models/page.rb
### if an original as JPG already exists and this is called a second time, the PDF will be stored
if an original as JPG already exists and this is called a second time, the PDF will be stored
if an original as JPG already exists and this is called a second time the PDF will be stored
def save_file(file_path,file_type)
    path = file_path.tempfile
    FileUtils.cp path, self.path(file_type)
    FileUtils.chmod "go=rr", self.path(file_type)
  end
def save_file ( file_path , file_type ) path = file_path . tempfile FileUtils . cp path , self . path ( file_type ) FileUtils . chmod "go=rr" , self . path ( file_type ) end
if an original as JPG already exists and this is called a second time, the PDF will be stored
if an original as JPG already exists and this is called a second time the PDF will be stored
file_path
<not_specific>
file_type
<not_specific>