Test upload image

This commit is contained in:
nox 2019-10-14 01:46:16 +02:00
parent 5ed4e59c61
commit fa4f4ae82d
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ $filename = $_FILES['image']['name'] ?? $_FILES['add_image']['name'];
$path = str_replace('\\', '/', dirname(realpath(__DIR__)));
$location = $path.'/uploads/products/'.$filename;
$location2 = '/uploads/products/'.$filename;
echo "location = ".$location;
die();
// file extension
$file_extension = pathinfo($location, PATHINFO_EXTENSION);
$file_extension = strtolower($file_extension);