Change path to pictures
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user