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
|
@ -48,6 +48,8 @@ if(isset($_POST['add_epreuve'])){
|
|||
$upload_state = 0;
|
||||
}
|
||||
|
||||
echo $target_file;
|
||||
|
||||
$file_name = "";
|
||||
switch($upload_state){
|
||||
case 1:
|
||||
|
@ -57,6 +59,7 @@ if(isset($_POST['add_epreuve'])){
|
|||
break;
|
||||
|
||||
case 2:
|
||||
move_uploaded_file($_FILES["photo"]["tmp_name"],$target_file);
|
||||
$file_name = htmlspecialchars($_FILES["photo"]["name"]);
|
||||
break;
|
||||
case 0:
|
||||
|
|
Loading…
Reference in a new issue