File manager - Edit - /home/autoph/public_html/data03252025consolidation/api/upload/upload_imagev2.php
Back
<?php //upload.php $folder_name = "../../dist/img/customer"; if(!empty($_FILES)) { $temp_file = $_FILES['file']['tmp_name']; $location = $folder_name . $_FILES['file']['name']; move_uploaded_file($temp_file, $location); } if(isset($_POST["name"])) { $filename = $folder_name.$_POST["name"]; unlink($filename); } $result = array(); $files = scandir('../../dist/img/customer'); $output = '<div class="row">'; if(false !== $files) { foreach($files as $file) { if('.' != $file && '..' != $file) { $output .= ' <div class="col-md-2"> <img src="'.$folder_name.$file.'" class="img-thumbnail" width="175" height="175" style="height:175px;" /> <button type="button" class="btn btn-link remove_image" id="'.$file.'">Remove</button> </div> '; } } } $output .= '</div>'; echo $output; ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings