76e79207 by Jeff Balicki

clean data on images

1 parent 1ba5f967
......@@ -118,11 +118,12 @@ class ApiController extends Controller
$folder = preg_replace('/[^A-Za-z0-9\-]/', '', $folder);
$fileLocation = $change->fileLocation;
$file = explode('\\', $change->content);
$file = end($file);
$fileClean = str_replace(' ', '-', $file);
$curl = new Curl();
$curl->download($fileLocation.'/'.end($file), $storagePath . $folder . '/' . end($file));
$curl->download($fileLocation.'/'.$fileClean , $storagePath . $folder . '/' . $fileClean);
$curl->close();
chmod( $storagePath . $folder . '/' . end($file), 0777);
chmod( $storagePath . $folder . '/' . $fileClean, 0777);
}
}
......
......@@ -135,7 +135,7 @@ try {
//Get image var from row
$imagefile = $row->folder . '/' . $row->content;
$imagefile = $row->folder . '/' . str_replace(' ', '-', $row->content);
$imgLUp = $row->locationUp;
$imgLRight = $row->locationRight;
$bw = $row->width;
......
// var pluginUrl = "http://localhost:8888/Forms";
// var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
// var pluginUrl = "http://localhost:8888/Forms";
// var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
var pluginUrl = "http://contact.gotenzing.com";
var pdf_customizer = "http://pdf-customizer.synapsus.co";
var pdf_customizer = "http://pdf-customizer.synapsus.co";
function getAuth() {
......@@ -45,6 +45,8 @@
});
}
......