forked from rebillar/site-accueil-insa
test ville
This commit is contained in:
parent
6f847e9df6
commit
81d8990b31
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,8 @@ if(isset($_POST['add_epreuve'])){
|
||||||
if (!in_array($imageFileType,$EXT_WHITELIST)){
|
if (!in_array($imageFileType,$EXT_WHITELIST)){
|
||||||
$upload_state = 0;
|
$upload_state = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo $target_file;
|
||||||
|
|
||||||
$file_name = "";
|
$file_name = "";
|
||||||
switch($upload_state){
|
switch($upload_state){
|
||||||
|
@ -57,6 +59,7 @@ if(isset($_POST['add_epreuve'])){
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
move_uploaded_file($_FILES["photo"]["tmp_name"],$target_file);
|
||||||
$file_name = htmlspecialchars($_FILES["photo"]["name"]);
|
$file_name = htmlspecialchars($_FILES["photo"]["name"]);
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
|
Loading…
Reference in a new issue