Nextrek
Diff Revisions
308
vs
309
for /Android/SmartCharging/endPoints/upload_image.php
|
@@ -3,9 +3,9 @@ |
3 |
3 |
|
|
4 |
4 |
|
//var_dump($_SESSION); |
5 |
5 |
|
|
6 |
|
- |
if (!array_key_exists("images", $_SESSION)) { |
|
6 |
+ |
/*if (!array_key_exists("images", $_SESSION)) { |
7 |
7 |
|
$_SESSION["images"] = array(); |
8 |
|
- |
} |
|
8 |
+ |
}*/ |
9 |
9 |
|
|
10 |
10 |
|
$image_filename = ""; |
11 |
11 |
|
$risposta = array(); |
|
@@ -25,7 +25,7 @@ |
25 |
25 |
|
} |
26 |
26 |
|
|
27 |
27 |
|
move_uploaded_file($file['tmp_name'], "./images/temp/".session_id()."/".$image_filename); |
28 |
|
- |
array_push($_SESSION["images"], $image_filename); |
|
28 |
+ |
//array_push($_SESSION["images"], $image_filename); |
29 |
29 |
|
} |
30 |
30 |
|
else { |
31 |
31 |
|
$risposta["return"] = 0; |