Change path to pictures

This commit is contained in:
Senad Uka
2020-08-30 06:18:05 +02:00
parent 382c2c7ca1
commit 0e846183af
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ function hashedName($fileName) {
return strtolower(bin2hex(mhash(MHASH_ADLER32, $fileName)));
}
$target_dir = __DIR__ . "/../slike/";
$target_dir = __DIR__ . "/slike/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
$hashed_name = hashedName($target_file);