Skip to content

Commit

Permalink
multiple-image
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Apr 18, 2024
1 parent 655e057 commit b01e090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ public function imgupload(){
// }
//$response['url'] = $url;
$files = $_FILES;
$howmany = count($_FILES["fileupload"]['name']);
//$howmany = count($_FILES["fileInput"]['name']);
$response['files'] = $files;
$response['hm'] = $howmany;

Expand Down
2 changes: 1 addition & 1 deletion application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</div>
<div class="row pb-5">
<div class = "col-md-12"><h5>Ανεβάστε μια φωτογραφία</h5></div>
<div class = "col-md-9"><input id="fileupload" type="file" class="custom-file-input" name="fileupload[]" multiple/>
<div class = "col-md-9"><input id="fileupload" type="file" name="fileupload[]" multiple/>
<label class="custom-file-label" for="customFile">Επιλογή αρχείου</label></div>
<div class = "col-md-3">
<button type="button" class="btn btn-info btn-block" id="upload-button" onclick="uploadFile()"> Αποθήκευση </button></div>
Expand Down

0 comments on commit b01e090

Please sign in to comment.