Test upload image
This commit is contained in:
parent
5ed4e59c61
commit
fa4f4ae82d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue